[jQuery] Selecting the First of Many input types with jQuery
I'd like to select the first text input, password input, or textarea
on the page.
Only those three types of elements, and only the first one.
$("input[@type='text']:first, input[@type='password']:first,
textarea:first") is close, but not exact - it will take the first text
input, and the first password input, and the first text area.... I
only want the one of those that appears first in the markup...
Can jQuery solve this?