add_attributes(hash) public

Add multiple attributes to this element.

hash

is either a hash, or array of arrays

el.add_attributes( {“name1”=>“value1”, “name2”=>“value2”} ) el.add_attributes( [ [“name1”,“value1”], [“name2”=>“value2”] ] )

Show source
Register or log in to add new notes.