function findcustid(custid) {
var custid = custid;
alert (custid);
}
But this opens a dialogue window showing the value of (custid). I need to store this information and using it later to define the value of a variable later on in the Javascript. I tried replacing “alert” with “return” but then it does not work. For your information, the var is a single value not an multiple value array.
I’m a little confused about what you’re trying to do here. Where does the value of custid come from? Are you trying to prompt the user to input this value?
option value=“customerone”>cust 1</option
option value=“customertwo”>cust 2</option
option value=“customerthree”>cust 3</option
—
The values must be letter not numbers in the case i am using it for.
it is a form above but my code would not paste in very easily