Stephen Korecky wrote:
I tried that too, has same results...

On May 6, 9:35 am, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be>
wrote:
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

If you're talking about what you see in Firebug:
this just shows Gecko's internal DOM tree, which isn't necessarily the same as how the w3c would like it to be. If you change your html to be <input .... disabled="disabled" />, you'll see that firebug will drop the value too.

Most browsers just ignore the value of disabled and just look at the existence of the attribute (which you'll have to keep in mind when you use jquery to reenable the button, you'll need to remove the attribute, not just set it to false). the 'correct' way is disabled="disabled", though.

Jonathan
--
Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be

Reply via email to