I have a disabled text input that loads as:
<input type="text" name="Email<%=i %>" disabled="disabled" />
I'd like the jQuery statement that enables it. Seems like:
$("email0").attr("enabled");
should be close but doesn't work.
I have a disabled text input that loads as:
<input type="text" name="Email<%=i %>" disabled="disabled" />
I'd like the jQuery statement that enables it. Seems like:
$("email0").attr("enabled");
should be close but doesn't work.
Use .removeAttr()
like this:
$("input").removeAttr("disabled");
Or .attr()
like this:
$("input").attr("disabled", false);
$("email0").attr("enabled");
… would get the value of the enabled attribute, which would be undefined since there isn't one.
You want:
$("email0").removeAttr("disabled");