How to count values of two drop down using ajax or php
Example Form
Base Price : $10 Color [drop-down] Size [drop-down]
Base Price : $10
<select name="color">
<option>Blue</option>
<option>White</option>
</select>
<select name="size">
<option>8</option>
<option>10</option>
</select>
Calculation
example I change color to blue = $10
Price : $10 + $10 = $20
example I change Size to 8 = $5
Price : $10 + $5 = $15
Where to start & any good sources for me to look in detail?. 🙂
All you need is a JavaScript function for this one that is fired on the
onchangeevent:The Base Price value will change dynamically based on a user’s selection(s).