javascript element by class

92

get element by class name -

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

Comments

Submit
0 Comments