Even that still returns disabled=""

On May 6, 9:41 am, "Andy Matthews" <li...@commadelimited.com> wrote:
> Right. The disabled attribute takes an actual string, not a boolean. You can
> set even set it to true if you prefer:
>
> $("#button").attr("disabled","true");
>
>
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
>
> Behalf Of Jonathan Vanherpe (T & T NV)
> Sent: Wednesday, May 06, 2009 9:35 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Disable input button, using wrong HTML code?
>
> stephen wrote:
> > I created a test page here:
> >http://clients.stephenkorecky.com/stephen_korecky/js_test.html
>
> > But basically the problem is that $("#button").attr("disabled",true);
> > should disable a input button, and it does, HOWEVER it outputs
> > disabled="" when it should output disabled="disabled" anyone know how
> > to fix this?
>
> $("#button").attr("disabled","disabled");
> --
> Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be

Reply via email to