I am currently having a html code as:
<form>
<input type="text" name="price1" size="14" value="Rs.900" readonly="readonly"/>
<input type="text" name="price2" size="14" value="Rs.600" readonly="readonly"/>
<input type="text" name="price3" size="14" value="Rs.500" readonly="readonly"/>
</form>
<form name="qty">
<input type="text" name="quant1" id="id1" size="14" value="0"/>
<input type="text" name="quant2" id="id2" size="14" value="0" />
<input type="text" name="quant3" id="id3" size="14" value="0" />
</form>
<input type="button" onclick="calculate()" value="Submit" />
On clicking the submit button i want the value entered in qty form gets multiplied by corresponding price & gets returned using a javascript function.
Also how to validate the qty form, so as to allow only numeric values.
Please respond.
Thanks in Advance