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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -