Hi All,
Im new to JS and cant get this right as yet.
Im trying to get the value of a list box and just am not getting it...
No matter what I choose in the list Box the else statment gets carried out
The list box had to options to choose and the valies are 4 or 5
Here is what I have:
Thanks
Tag
Im new to JS and cant get this right as yet.
Im trying to get the value of a list box and just am not getting it...
No matter what I choose in the list Box the else statment gets carried out
The list box had to options to choose and the valies are 4 or 5
Here is what I have:
Code:
var gen=(document.PedigreeForm.txtGenerations.value);
if (gen = 4){return (MyString2);}
else {return (MyString);}
Thanks
Tag