I have a 2 div tags which a similar class names, the only difference is that the second div has an extended class name. How can I retrieve the 2 elements seperately in 2 different variables using jquery.
<div class='container'>
<div class='submit'></div>
<div class='submit newClass'></div>
</div>
From the above example I need the item which has the class 'submit' and not 'submit newClass'.
If i did $('div.container .submit'), this gives me both the div tags. How can i acheive this. I would not like to use index based selections or by using the 'first' method in jquery.