I wonder if someone could help,
I have a form with 2 drop down menus, when the first drop down menu is changed I don't want the value from the second menu to be submitted ie I want to clear or null the value in the second menu.
Don't know if I've taken the right approach, the following is what I've but doesn't work
<td colspan="2" align="right" class="prixTotauxPanier"><?php if ($order->customer['country']['id'] == '') { echo TEXT_DELIVRY_STATE . tep_draw_pull_down_menu('countrieselected', $countries_array, $menu_default_countrie, 'width="230" style="width: 230px" onChange="clearshipping();this.form.submit();"') . tep_draw_separator('pixel_trans.gif', '100%', '5'); } ?></td>
</tr>
<tr>
<td colspan="2" align="right" class="prixTotauxPanier"><?php if (sizeof($quotes_array) > 1) { echo TEXT_DELIVRY_TRANSPORTEUR . tep_draw_pull_down_menu('shippingselected', $quotes_array, $default_shipping_module, 'width="230" style="width: 230px" onChange="this.form.submit();"') . tep_draw_separator('pixel_trans.gif', '100%', '5'); } ?></td>
in the header i added the following function
<script type="text/javascript">
function clearshipping()
{
shippingselected = " "}
</script>