Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Klaus Hartl
Jörn Zaefferer schrieb: > Klaus Hartl schrieb: >> Still you have to keep in mind that it is a boolean attribute and the >> DOM interface for enabling/disabling is to set a boolean value. >> >> And I furthermore encourage you to not rely on w3schools instead of the >> real W3C specs. >> > Wel

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Jörn Zaefferer
Klaus Hartl schrieb: > Still you have to keep in mind that it is a boolean attribute and the > DOM interface for enabling/disabling is to set a boolean value. > > And I furthermore encourage you to not rely on w3schools instead of the > real W3C specs. > Well, what would be then the right plac

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Klaus Hartl
Sean O schrieb: > > Klaus Hartl wrote: >> 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 ch

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Sean O
Klaus Hartl wrote: > > 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://st

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Klaus Hartl
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 I

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Klaus Hartl
Glen Lipka schrieb: > Try: $("textarea.news01").attr("disabled", "true"); That should work with jQuery 1.02 and you should pass a boolean, not a string: $("textarea.news01").attr("disabled", true); Otherwise you can try $("textarea.news01")[0].disabled = true; But that throws an error if ther

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Sean O
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 f

Re: [jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Glen Lipka
Try: $("textarea.news01").attr("disabled", "true");GlenOn 10/10/06, Eriksen Costa < [EMAIL PROTECTED]> 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:$(

[jQuery] How to disable a form fields in jQuery

2006-10-10 Thread Eriksen Costa
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 attributeSo, how can I manage t