geeting NaN on multiplication of 2no. jsp -
i want multiply value of 2 textbox , display on 3rd textbox tried these coding in javascript not getting proper m getting nan
function cal() { var as1=document.getelementbyid("sa").value; var not1= parseint(document.getelementbyid("not").value); var rs1= parseint(document.getelementbyid("r1").value); if(as1>=not1) { if(document.getelementbyid('r1').checked) { var c= rs1*not1; document.getelementbyid("ta").value= c; } } }
plz help
looks typo. "as1" should "rs1", right?
jsp nan
No comments:
Post a Comment