I have an HTML form with multiple selects that all have the same class. Out of these only one appears at a time depending on previous selections and thus only one of them can have a value at a time.
What is the proper / best way to get the value of all these selects put together ?
They look like this:
<select class="formField" id="input1"> ... list of options ... </select>
<select class="formField" id="input2"> ... list of options ... </select>
<select class="formField" id="input3"> ... list of options ... </select>
Would the following be correct in this case ?
$('.formField').val();
Thanks for any help with this, Tim.