phillipcc a écrit :
> How can I add/change an element attribute?
> I want to add attribute 'checked="true"' inside a input.
> 
> Before: <input type="checkbpox" />
> After: <input type="checkbpox" checked="true" />

Grab your element (equip it with an id= attribute, say, id="demo", then
use $('demo')) and toggle its checked property.

        $('demo').checked = true;

'HTH

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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