attr Function

Applies or modifies attributes on the node. Returns the handler.

Summary

ElementFunction
ReturnsObject

Arguments

objObject[required] Object containing attributes and values.

Example

handler.attr({ example: 'Hello World' });