Howdy Kirupans!
I’m in the middle of trying to get a form of mine to display its contents in plain English.
[link] http://www.wirelessinteractive.com/cable/
This little application allows someone to enter the specs of a cable they’d like to custom order. They put in the length and quantity, select the connector types, and the type of cable to use. Once all of that is done, the form calculates the cost. No big deal. I also need it to describe the cable in plain English in an order summary.
Now, I built a function that I figured would work out, but I’ve been running into some problems. Take a look:
var cableDesc0 = document.getElementById("cableQty0").value + " x " + document.getElementById("cableLength0").value + " feet of " + document.getElementById("cableType0").value + " cable with " + document.getElementById("con01").value + " and " + document.getElementById("con02").value + " connectors.";
The above is meant to concatenate all the values of the form into a single sentence and call it cableDesc0. It would look something like this:
**25 x 15 feet of LMR195 cable with RPTNC Male and RPSMA Female connectors.
**However, that variable declaration throws me an error saying the following:
**
Error: document.getElementById(“cableQty0”) has no properties.
**Sorry guys, I know this might be a bit wordy, but any takers on this would be extremely appreciated.