setAttribute - xurion/acronymizer.js GitHub Wiki

Sets a single attribute that will be attached to the wrapping element. To set multiple attributes, see the setAttributes function.

Acronymizer.setAttribute(attribute, value)

Parameters

attribute
String. The name of the attribute.

value
String. The value of the attribute.

Example

var acron = new Acronymizer();
acron.setAttribute('href', 'http://github.com');
⚠️ **GitHub.com Fallback** ⚠️