hi all,
what i'd like to do is :
i do have two select box. one called condition and one called operation.
an example :
<select name="condition">
<option value="" selected>Date</option>
<option value="">String</option>
<option value="">Code</option>
</select>
<select name="operation">
<option value="" selected>equals to</option>
<option value="">not equals to</option>
<option value="">begin with</option>
<option value=""><</option>
<option value="">></option>
<option value="">contains</option>
</select>
what i want is that when i select the condition, the operation select box will only have certain options (i mean for example i do have 3 conditions option : date, string, code. with date i should only have "<", ">" and "equals to" operartion, but for string i could have "containing" or "begining". and for code i should only have "equals to"
i fact i want that my second select box dinamicaly when someone choose an option of the first one.
is there a way to do that in JS ? what kind of properties and action should i deal with ?
Best regards X-),
Elise
what i'd like to do is :
i do have two select box. one called condition and one called operation.
an example :
<select name="condition">
<option value="" selected>Date</option>
<option value="">String</option>
<option value="">Code</option>
</select>
<select name="operation">
<option value="" selected>equals to</option>
<option value="">not equals to</option>
<option value="">begin with</option>
<option value=""><</option>
<option value="">></option>
<option value="">contains</option>
</select>
what i want is that when i select the condition, the operation select box will only have certain options (i mean for example i do have 3 conditions option : date, string, code. with date i should only have "<", ">" and "equals to" operartion, but for string i could have "containing" or "begining". and for code i should only have "equals to"
i fact i want that my second select box dinamicaly when someone choose an option of the first one.
is there a way to do that in JS ? what kind of properties and action should i deal with ?
Best regards X-),
Elise