javascript - How to display result in textbox using jsp -


i have 1 jsp form in accepting product quantity , product rate user , multiplication of want show in textbox when click on calculate button. how achieve using jsp servlet. tried using javascript doesnt work.

can u please suggest me something?

<script language="javascript" type="text/javascript">       function netamount()      {         //alert("iam in java script");           var pquantity= document.getelementbyid("prodquantity").value; // document.f11.prodquntity.value;           var prate = document.getelementbyid("prodrate").value; //document.f11.prodrate.value;            var neta = parseint(pquantity) * parsedouble(prate);              document.getelementbyid("netamount").value = neta;      }  </script> 


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -