function totalMark() { var total=$get('txtSub1').value+$get('txtSub2').value+...; var percentage=total/(totalmarks)*100; $get('txtGrandTotal').value=total; $get('txtPercentage').value=percentage; }
var percentage=total/(totalmarks)*100;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)