Flagrate API documentation

Home ▲
class-method

flagrate.Element.writeAttribute

flagrate.Element.writeAttribute(element, attribute[, value = true]) → Element

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/