Forum Sign UP Login Contact Us
HOME : Forum : PHP programming : Post New Topic
Concatenate input field name ,it causes [object HTMLInputElement]undefined
kpraveen
07:20:12 06:14
<script type=javascript>
function acal()
{

for(i=1;i<=5;i++)
{
var rtot1=(document.paycalc.r+i.value);
alert(rtot1);
document.paycalc.pqty.value=rtot1;

}
var vtot1=0;
vtot1=(document.paycalc.r1.value * document.paycalc.v1.value) + vtot1;
document.paycalc.pvalue.value=vtot1;
}
</script>
Please Login to post your reply or start a new topic
Privacy Policy | Disclaimer
©2000 - 2014 plus2net.com All rights reserved worldwide