How to select an input OR a select with jQuery
Posted
by Ricardo
on Stack Overflow
See other posts from Stack Overflow
or by Ricardo
Published on 2010-06-02T22:48:59Z
Indexed on
2010/06/02
22:54 UTC
Read the original article
Hit count: 221
jQuery
Hi, how can one select an input "or" a select element with jQuery? I have a form, and I want to get the first element of that form that is an input or a select. So, this $('#myForm').find('input:first') or $('#myForm').find('select:first'). Any idea? Thanks
© Stack Overflow or respective owner