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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -