Jquery dynamic addition/subtraction/multiplication/division of multiple text box values in popup

前端 未结 3 1163
醉酒成梦
醉酒成梦 2021-01-25 01:24

Code of PopUp view

 
Amount :
3条回答
  •  不要未来只要你来
    2021-01-25 01:54

    You should you document.getElementById('id').value to get value of textbox. Your code should be:

    var amountfdtlspop = document.getElementById('amountfdtlspop').value;
    var fineAmt = document.getElementById('fineAmt').value;
    var waivedAmt = document.getElementById('waivedAmt').value;
    var schShipAmt = document.getElementById('schShipAmt').value;
    var grndttlAmt = document.getElementById('grndttlAmt');
    grndttlAmt.value = amountfdtlspop + fineAmt + waivedAmt + schShipAmt;
    

提交回复
热议问题