Edit this page

up.element up.element.setAttrs(element, attributes)
JavaScript function

Sets all key/values from the given object as attributes on the given element.

Example

up.element.setAttrs(element, { title: 'Tooltip', tabindex: 1 })

Parameters

element Element

The element on which to set attributes.

attributes Object

An object of attributes to set.