I've been looking for the syntax error in this snippet for hours. Can you spot it?
Here's the page (last section only; "Fiberglass Boattails"). Select an item to show inputs.
Please help. Thanks.
//find FNC Slotting in array
for (var i = 0; i < productArray.length; i++) {
if ((productArray[i][0]==SLOTTINGFNC)) {
document.getElementById("FBTLslotting_price").value = productArray[i][2] //price per slot
break //this exits the loop since we found what we're looking for
}
}
// Putting together total slotting prices for display
FBTLslotting_price = FBTLslotting_price.substr(1); //remove $ sign
var TotalSlottingPrice = Number(FBTLslotting_price) * document.getElementById("Fslots").value ; //multiply price x qty
//The prices below added together for display
document.getElementById("FSLOTpriceDisplay").innerHTML = "$" + TotalSlottingPrice.toFixed(2); //put $ sign back, display total price