更新时间:2023-02-23 23:31:30
特殊。' > < 输入 类型 = text id = txtQty'。
RSD_No。 ' value = '。
Quantity。' readonly >
< 输入 类型 = text id = txtUP name = txtUP。
here is my php code to display the values.
<input type="text" id="txtParticulars" name="txtParticulars" value="'.$Particular.'"><input type="text" id="txtQty'.$RSD_No.'" value ="'.$Quantity.'" readonly>
<input type="text" id="txtUP" name="txtUP'.$RSD_No.'" /><input type="text" id="txtTotal'.$RSD_No.'" readonly>
Total:<input type="text" id="txtGrandTotal" class="add" readonly />
and the javascript.
function calc(row) { var in1=document.getElementById('txtQty'+row).value; var in2=document.getElementById('txtUP'+row).value; var in3=in1*in2; var total = document.getElementById('txtTotal'+row).value=in3.toFixed(2); }
I have textboxes that has a value, what I need is to get the grand total.
Particular.'"><input type="text" id="txtQty'.
RSD_No.'" value ="'.
Quantity.'" readonly> <input type="text" id="txtUP" name="txtUP'.