How can I get an array of all elements within a specific class using javascript and/or jQeury?
Posted
by Clean
on Stack Overflow
See other posts from Stack Overflow
or by Clean
Published on 2010-03-29T11:12:30Z
Indexed on
2010/03/29
11:13 UTC
Read the original article
Hit count: 79
JavaScript
|jQuery
Hi,
I'm trying to get an array of all elements with the class "sampleclass". For example, withing my document I have three divs:
I want to get an array with all elements that are within the "sampleclass" using javascipt and/or jQuery.
Any ideas on how to do this?
© Stack Overflow or respective owner