Eriksen,

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

If you need to re-enable it later:
$("textarea.news01").removeAttr("disabled");


_______
SEAN O



Eriksen Costa wrote:
> 
> Hello people,
> 
> I was searching for a way to disable form in jQuery. I searched the API
> and
> dont found anything about the disabled attribute. How can I disable form
> fields in jQuery?
> 
> I tried:
> 
> $("textarea.news01").id().disabled = true;
> -> return the ID              -> html attribute
> 
> So, how can I manage this in jQuery?
> 
> Thanks a lot,
> Eriksen Costa
> www.marinheirobrasil.com.br
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-disable-a-form-fields-in-jQuery-tf2419205.html#a6744691
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to