I have a several forms, and I'd like to select only the first and second input box of each form
$("form input:nth-child(1), form input:nth-child(2)");
But this doesn't work because each input has a label next to it, so there is no input that is nth-child(1)
.
Example at jsbin