I was just wondering what the best way of looping through all the child elements of a form would be? My form contains both input and select elements.
At the moment I
$('#new_user_form :input') should be your way forward. Note the omission of the > selector. A valid HTML form wouldn't allow for a input tag being a direct child of a form tag.
$('#new_user_form :input')
>