priyadharshini Posted April 28, 2011 Share Posted April 28, 2011 Hi all, I have developed a code as, when a weight field is selected its corresponding ordered price field to be displayed using onchange event. <select name="weight" id="weight" class="ap_size" onChange="this.form['ordered_price'].value =this.options[this.selectedIndex].value;"> <option value="11.00">500 gms</option> <option value="22.00">1000 gms</option> </select> But now it should also display the actual price in the actual_price field when onchange occurs. Note : ordered price and actual price are not same I dont know how to do this. Provide me solution for this Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/234947-onchange-function/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.