点击button控件,设置text的disabled:
$(".boxform :text").removeAttr("disabled");结果发现点击任一服务器控件,text的disabled属性又会恢复,本来想偷懒的,结果...
有没有办法保持jquery中设置的状态?难道只能写在后台代码里吗?(text控件好多的说......)
$(".boxform :text").removeAttr("disabled");结果发现点击任一服务器控件,text的disabled属性又会恢复,本来想偷懒的,结果...
有没有办法保持jquery中设置的状态?难道只能写在后台代码里吗?(text控件好多的说......)
{
if (IsPostBack)
throw new NotSupportedException("本页面永不支持回发操作。");
}另外,这样的页面就可以禁用ViewState。
和
$("#ID").attr("disabled","none")
都可以搞定