[eluser]il_dandi[/eluser]
Hi! I've a field in my view
<select name="tipoInOut" id="tipoInOut">
<option value="I"<? if($tipoInOut=='I') echo " selected" ?>>Ingresso</option>
<option value="O"<? if($tipoInOut=='O') echo " selected" ?>>Uscita</option>
</select>
Now I've to add a condition for manage the selected value
<? if($tipoInOut=='I') {?>
<select name="idMittente" id="idMittente">
....
my problem is this: if user change the value I've to re-execute the if condition for verify the value to show in second select ... I've to manage this each time that user change the value of "tipoInOut" field
Can you help??