Zell 写道: > Hi i'm learning prototype and i need to know something... > > > Someone knows how to write and get the value of some atribute... i > mean like...jquery that uses $('#sub-div').atrr('alt','visible); > > in prototype is there something like that?... > > I hope you can help me and thanks :D > > > > Get some element: id='sub-div' => $('sub-div') class='test' => $$('.test')[0]
get attribute => $('sub-div').readAttribute('attr') set attribute => $('sub-div').setAttribute('attr', 'test') --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---