On May 5, 11:21 pm, crashmeister <[EMAIL PROTECTED]> wrote:
> Can someone please let me know how to get consistent values from:
>
>     var w = $(myElement).readAttribute("disabled");
>
> I am getting :  null, " ", "disabled" depending on IE or FF.

Use:

  var w = myElement.disabled;

or if you want to guarantee a boolean:

  var w = !!myElement.disabled;


--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to