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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -