Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

giving an html element own attribute using js

element.hasAttribute('foo');
element.getAttribute('foo');
element.setAttribute('foo', value);
element.removeAttribute('foo');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #giving #html #element #attribute #js
ADD COMMENT
Topic
Name
3+5 =