Jump to content

Onchange function


priyadharshini

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.