how to update one value from drop down list based on calculation?

namkiem

New Member
For example: I got dropdown list from sum assured, and i would like to automatically calculate the Premium. For example if 30000 for sum assured is selected, then the premium 361.30 will be selected in the premium select list. \[code\]<select id="sumAssured"> <option value="http://stackoverflow.com/questions/15897571/10000">10000</option> <option value="http://stackoverflow.com/questions/15897571/20000">20000</option> <option selected="selected" value="http://stackoverflow.com/questions/15897571/30000">30000</option> <option value="http://stackoverflow.com/questions/15897571/50000">50000</option><option value="http://stackoverflow.com/questions/15897571/100000">100000</option> </select>\[/code\]The premium 361.30 will be automatically calculated on the backend.Suggested to use Jquery, thanks :)
 
Back
Top