Right now I have two selects on my page:
<div id="exportSelection">
<select name="ddlRubrique" id="">
<option value=""></option>
<option value="option1">option1</option>
</select>
<select name="_ddlSubRubrique" id="">
<option value=""></option>
<option value="option2">option2</option>
</select>
</div>
I’ve been using this jQuery:
jQuery("#_ddlSubRubrique").chained("#ddlRubrique");
but to make is more reliable i would like to tell the selector to select first select and select second select in this div #exportSelection.
How would you do that?
1 Answer