判断textbox是否允许输入值 本帖最后由 patty1991 于 2012-08-28 15:28:20 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 图片看不到,不过你描述的真心是一个超简单问题无非就是禁用输入框,等点击按钮后再启用。<button type="button" id='btn1' onclick="document.getElementByI('in1').disabled='';">按钮</button><input type='text' disabled="disabled" id='in1' /> 如果用的服务器控件自己使用对应属性 <button type="button" id='btn1' onclick="document.getElementById('in1').disabled='';alert('提示');">按钮</button><input type='text' disabled="disabled" id='in1' /> 额。行了, 其实我一直想用.net做出来,做着坐着就越复杂,还是回头来请教会js的前辈们 谢谢你啊,给你分,呵呵 IE调式窗口的打印语句是什么呢 Jquery 绑定 newWindow事件 jquery问题求解释在线等 在线请求关于过滤设置alpha的问题--苹果和firefox浏览器不支持。 一个小小问题 javascript与activex交互问题 [求助] ExtJs的window窗体如何隐藏? 图层拖动? 这样的链接我的IE为何打不开? json名字不一定,怎么返回?? 怎样知道登录网页的真实登录地址 Highstock 图表 问题
无非就是禁用输入框,等点击按钮后再启用。
<button type="button" id='btn1' onclick="document.getElementByI('in1').disabled='';">按钮</button>
<input type='text' disabled="disabled" id='in1' />
如果用的服务器控件自己使用对应属性
<button type="button" id='btn1' onclick="document.getElementById('in1').disabled='';alert('提示');">按钮</button>
<input type='text' disabled="disabled" id='in1' />