I have the following HTML
<ul class="main-navigation">
<li class="left"> </li>
<li class="normal">Home</li>
<li class="normal">Internet</li>
<li class="normal">Movies</li>
<li class="normal">Music</li>
<li class="normal">Documents</li>
<li class="normal">Windows</li>
<li class="right"> </li>
</ul>
What I want to do is, get the array of <li>
elements which have the "normal" class and loop through them and add event listeners.
What jQuery code will return the array? I tried different combinations like -
$('.main-navigation.normal')
$('.main-navigation li .normal')
How can I get that array of nodes? How can I loop through them and add events?