jquery attr(readonly) function not working
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working with AST.Net and jQuery 1.8.3. I want to make a textbox's readonly property to be true on pageload and false when a script runs. My code goes like this: function showdiv() { $("#diviv").fadeIn("slow"); $("#txtname").attr('readonly', false); $("#txtmobile").attr('readonly', false); $("#txtemail").attr('readonly', false); } I want to make the readonly property of these three textboxes to be false when the function showdiv runs. Also I am making a div visible when the script runs. But it's not making it false. Please give me some