get Function

nano > def > get
Returns the innerHTML or value of the node. If "attr" is specified, the value of that attribute will be returned.

Summary

ElementFunction
ReturnsObject|Array|Function|String|Number

Arguments

attrStringAttribute for which to return a value.

Example

var id = handler.get('id');