I would like to multiply combo_1 and combo_2 to give an outcome and display it in the textbox of txt_price using javascript.
f[‘txt_price’].value = (f[‘combo_1’].value).toFixed(2);
This is something I was working on but no results so far. Any help would be greaty appreciated.
<form>
<select name=”combo0″ id=”combo_0″ onChange=”change(this);” style=”width:200px;”>
<option value=”0″>-select-</option>
<option value=”1″>Canada</option>
<option value=”2″>States</option>
</select>
<BR><BR>
<!– I would like to Multiply this field –>
<select name=”combo1″ id=”combo_1″ onChange=”change(this)” style=”width:200px;”>
<option value=”1″></option>
</select>
<label></label>
<BR>
<BR>
<!– and this field –>
<select name=”combo2″ id=”combo_2″ onChange=”change(this);” style=”width:200px;”>
<option value=”1″></option>
</select>
<BR>
<br>
<!– To present an outcome to this field –>
<input type=”text” name=”txtPrice” id=”txt_price” onChange=”change(this);” style=”width:200px;”>
<BR>
</form>