I have several forms, and I would like to select only the first and second input fields for each form
$("form input:nth-child(1), form input:nth-child(2)");
But this does not work, because each input has a label next to it, so there is no input nth-child(1).
Jsbin example
source
share