Calculate percentage using jQuery in php

<script type=”text/javascript”> function calpercentge(e) {          var pcnt=6;     var nprice=0;     var spval= e.value;            if(spval == ‘NaN’ || spval == “”) {         spval = 0.00;         document.getElementById(“product_price”).value = spval.toFixed(2);     } else {        … Read moreCalculate percentage using jQuery in php