I have a drop down list box name ListBoxURL in my JSP.
The variable Choice is read into my javascript correctly only if it is one word. If the user makes a selection choice that has 2 words like
"James No", only James will be read in as the Choice. How can I fix this problem?
var Choice = document.myform.ListBoxURL.options[document.myform.ListBoxURL.selectedIndex].value;
The variable Choice is read into my javascript correctly only if it is one word. If the user makes a selection choice that has 2 words like
"James No", only James will be read in as the Choice. How can I fix this problem?
var Choice = document.myform.ListBoxURL.options[document.myform.ListBoxURL.selectedIndex].value;