Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript set value html element by class

var list = document.getElementsByClassName('Qty');
var n;
for (n = 0; n < list.length; ++n) {
    list[n].value='100';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #set #html #element #class
ADD COMMENT
Topic
Name
1+7 =