Hello guys,
i need your help about how to clear value from ajax selected value, the code i use from thread daved83 about AJAX dropdown list. i have modified a little for that code, the code is like below
<tr>
<td style="vertical-align:top;" rowspan="5" width="130px">Shipment by<br/><span style="font-size:10px">(select nearest city <br/>if not find your city)</span>
<div class="ship_only"><p>Sorry, for your inconvenience.<br/>For now, other area besides jakarta please <a href="<?php echo $config_basedir;?>contact_us">contact us</a></p>
</div>
</td>
<td style="vertical-align:top; padding-left:"><input name="br" type="radio" checked onClick="SetHTML2('c1')"/>TIKI regular
<span id="c1" style="">
<div style="margin-left:20px;margin-top:5px;">
<table width="60%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="150">Province</td>
<td width="150"><select name="province" id="province" onChange="getNextMenu(0)"><option value="">Select province</option>
<?php $c = mysql_query("SELECT * FROM provinsi");
while($crow = mysql_fetch_array($c)){
echo '<option value="'.$crow["id_provinsi"].'">'.$crow["provinsi"].'</option>';
}
?>
</select></td>
</tr>
<tr style="">
<td>City</td>
<td ><select name="city" id="city" onChange="getNextMenu(1)" disabled>
<option value="none selected"> Select province first</option>
</select></td>
</tr>
<tr style="">
<td>Price</td>
<td class="hid">
<select name="val" id="val" disabled>
<option value="none selected"> Select city First </option>
</select> /kg
</td>
</tr>
</table>
</div>
</span>
</td>
</tr>
<td>
<input name="br" type="radio" onClick="SetHTML2('d1');" >TIKI ONS
<span id="d1" style="display:none">
<br/>
<div style="margin-left:20px;margin-top:5px;">
<table width="60%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="150">Province</td>
<td width="150"><select name="province" id="province2" onChange="getNextMenu2(0)"><option value="">Select province</option>
<?php $c = mysql_query("SELECT * FROM provinsi");
while($crow = mysql_fetch_array($c)){
echo '<option value="'.$crow["id_provinsi"].'">'.$crow["provinsi"].'</option>';
}
?>
</select></td>
</tr>
<tr style="">
<td>City</td>
<td ><select name="city" id="city2" onChange="getNextMenu2(1)" disabled>
<option value="none selected"> Select province first</option>
</select></td>
</tr>
<tr style="">
<td>Price</td>
<td class="hid">
<select name="val" id="val2" disabled>
<option value="none selected"> Select city First </option>
</select> /kg
</td>
</tr>
</table>
</div>
</span><br/>
</td>
</tr>
the system is when visitor click TIKI regular, drop down ajax list will appear and visitor can chose province, city and price will automaticly appear after chose city.
the problem is the price value will still there after visitor move chose other option, like TIKI ons.
need help for: how i can clear the chosen value if visitor move chose other option?
many thank,