class-method
flagrate.Element.update
flagrate.Element.update(element[, newContent]) → Element
element
(Element
) – instance of Element.newContent
(String
|Number
|Element
) – new content.
Replaces the content of element
with the newContent
argument and
returns element
.
This method is similar to http://api.prototypejs.org/dom/Element/update/