javascript - Dropdown reset issues with IE7 works fine on FireFox and Chrome -
hello stackoverflow have simple form validation logic doesn't seem work on ie7 reason.
basically have 2 dropdown boxes , input box. when first dropdown box state changes other dropdown , inputbox clears.
current logic seem work on ff, chrome not ie7. clearing of input box works expected on ie well.
$('#names').change(function(){ $('#rate').val("0"); $('#amount').val(""); });
any helps appreciated.
it seems ie requires add null value in order change first element.
<option>--</option>
to
<option value="0">--</option>
fixed issue :)
Comments
Post a Comment