Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

setAttribute

xurion edited this page Feb 24, 2013 · 1 revision

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');

Clone this wiki locally