writeAttribute
1.6

writeAttribute(element, attribute[, value = true]) -> HTMLElement
writeAttribute(element, attributes) -> HTMLElement

Adds, specifies or removes attributes passed as either a hash or a name/value pair.