javascript element by class

87

get element by class name -

var y = document.getElementsByClassName('foo');
var aNode = y[0];

Comments

Submit
0 Comments