I'm trying to get an array of all elements with the class "sampleclass". For example, withing my document I have three divs:
<div class="aclass"></div>
<div class="sampleclass"></div>
<div class="anotheraclass"></div>
<div class="sampleclass"></div>
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?
sampleclasselement? If yes then there is a typo in the question, and most people have answered wrong.