Hi all, I am trying to get the first input field in a form that isn't disabled or hidden. I need to be able to exclude radio buttons, selects, and particular IDs.
The following code works perfectly, EXCEPT when a select comes before the text or password field that I want:
$("form :input:visible:enabled:first:not('select')");
If I exclude the :not('select'), the select is returned as the first input field (correctly so, as :input returns pretty much all form elements). However, when I include the :not('select'), nothing is picked up. Any ideas?
Second part to this question - I assume it is ok to chain :nots so I could have something like:
$("form :input:visible:enabled:first:not('select'):not(#specific_id):not(type[radio])");
Thanks a lot!
Al