set Function
Sets the innerHTML or value of the node. If "mode" is specified, "before" will add the first argument before the current innerHTML or value of the node, and "after" will add after the current innerHTML or value. Returns the handler.
Summary
Element | Function |
Returns | Object |
Arguments
val | string|number | [required] Value to set as the new innerHTML or value. |
mode | replace|before|after | Insert mode of the new value. (default) replace |
Example
handler.set(' - Hello!', 'after');
|