removeAttribute()

Removes an attribute from an element by name.

Syntax

behavior.removeAttribute(element, attributeName);

Example

var mybehavior = jsb.behavior.extend({
  onclick: function(element) {
    this.removeAttribute(element, "inactive");
  }
});

Notes

This method provides a cross-browser, safe way to perform the W3C equivalent method. Most of the time you can use the W3C method. If you are not sure then use the jsb method.

See Also