I'm trying to get the value of each input in a row and multiply them together but the result is a weird number:
ejs file:
<td><input type="number" id="nolabour" name="nolabour"></td>
<td><input type="number" id="labhrperdsy" name="labhrperdsy"></td>
<td><input type="number" id="labnodays" name="labnodays"></td>
<td><input type="number" id="labhrrate" name="labhrrate"
oninput="labourSum()"></td>
<td><input type="text" id="labrate" name="labrate"></td>
javascript code:
function labourSum(){
var aValue = document.getElementById("nolabour").value;
var bValue = document.getElementById("nolabour").value;
var cValue = document.getElementById("nolabour").value;
var dValue = document.getElementById("nolabour").value;
var result = document.getElementById("labrate");
result.value = parseFloat(aValue) * parseFloat(bValue) * parseFloat(cValue) * parseFloat(dValue);
}