[jQuery] Re: FAQ for 'How do I disable enable an element'

2008-05-12 Thread AllenH
OK, thanks. The FAQ and doc page made me think I was using an approach that wasn't officially supported. I'll stick with the approach of using true and false -- that results in cleaner code in my experience so far. Allen On May 12, 4:49 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > As fair as I'm

[jQuery] Re: FAQ for 'How do I disable enable an element'

2008-05-12 Thread Karl Rudd
As fair as I'm aware, in JavaScript, the boolean values are the correct values for getting and setting the boolean attributes, like "disabled" and "readonly". When the HTML is parsed those accessing those attributes will return either 'true', 'false' or 'undefined'. The attr("disabled","disabled"