Sean O schrieb:
> Eriksen,
> 
> Try:
> $("textarea.news01").attr("disabled", "disabled");
> 
> If you need to re-enable it later:
> $("textarea.news01").removeAttr("disabled");

This does not work as expected, see my test page here (with checkboxes):
http://stilbuero.de/demo/jquery/checkbox.html

If you use removeAttr the checkbox is not unchecked in Firefox. I assume 
it's the same with disabled (all boolean attributes).

With jQuery 1.02 the following works:

$("textarea.news01").attr("disabled", true); // disable
$("textarea.news01").attr("disabled", false); // enable

You have to keep in mind these boolean attributes... I wonder, if

$("textarea.news01").attr("disabled", "disabled");

should be handled by jQuery like $("textarea.news01").attr("disabled", 
true) or if that is already done...?


-- Klaus



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to