class-method
flagrate.Element.writeAttribute
flagrate.Element.writeAttribute(element, attribute[, value = true]) → Element
element
(Element
) – instance of Element.attribute
(String
|Object
) – attribute name or name/value pairs object.value
(Boolean
|String
) – value of attribute.
Adds, specifies or removes attributes passed as either a hash or a name/value pair.
This method is similar to http://api.prototypejs.org/dom/Element/writeAttribute/