javascript:getElementByClassname:Is it possible to collect all the elements with same classname

javascript:getElementByClassname:Is it possible to collect all the elements with same classname

Is it possible to collect all the elements with same classname in a array n display the array by using getElementByClassname()?

like

a
a1

now i want to take a and a1 n put in single array. can any1 help me

View Answers









Related Tutorials/Questions & Answers:

Ads