Jquery finding firrt element of specific class
Posted
by Sandeep
on Stack Overflow
See other posts from Stack Overflow
or by Sandeep
Published on 2010-06-12T10:19:49Z
Indexed on
2010/06/12
10:23 UTC
Read the original article
Hit count: 153
jQuery
I am using jquery to find a first element having a class "error" applied to it using the below code
$('#mainDiv input.error:eq(0)')
But the above one working only for input elements only. How to make this one to work for both input and select elements?
© Stack Overflow or respective owner