I have
&l
$(':input.required[type="text"]')
EDIT:
This will be slightly faster:
$('input.required[type="text"]')
Note:
:input
will get all form elements (<select>
, <textarea>
, etc.)
input
will only get <input>
elements, and is slightly faster.
$(':input[type="text"][class="required"]')
That should work
http://jsfiddle.net/ck8wt/
lol ... I couldn't see the forest through the trees. :P I'll leave mine up too though just as an illustration of how many ways this can be done. XD
$('.required:input[type="text"]')
(also $('input.required[type="text"]')
)
If you just add the class to your selector, it should do what you are looking for.
$('.required:input[type="text"]')