getAttribute
A cross-browser implementation of getAttribute.
Source found here: http://stackoverflow.com/a/3755343/361337 written by Vivin Paliath
Uses default getAttribute
if it's available.
Component
Built to be used with the Component package manager. Read more here:
Installation
$ component install javve/get-attribute
Example
var getAttribute = ; var el = documentvar dataValue = ; ; // Alerts "myValue"
API
getAttribute(element, attribute)
Return the value for attribute
at element
.
License
MIT