Tuesday, 17 September 2013

How to get the length of array div tag using javascript?

How to get the length of array div tag using javascript?

I want to get the length of div using javascript.
<div id="div1">1</div>
<div id="div2">2</div>
<div id="div3">3</div>
<div id="div4">4</div>
<div id="div5">5</div>
Can any one help me how to get the length.
Thanks,

No comments:

Post a Comment