I’m searching for inputs on my form and adding them to the inputs variable:
var inputs = $(this).parents("form").eq(0).find(".input:visible:enabled");
How can I extend this search of the other components like select. So, add the inputs and selects in the order in which they were found on the form?
Something like
var inputs = $(this).parents("form").eq(0).find(".input:visible:enabled OR .select");
Multiple selectors will be separated by comma(
,).For more see here