GeeCON Prague 2014*
The moose likes Struts and the fly likes Problem with html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with html:select" Watch "Problem with html:select" New topic
Author

Problem with html:select

Vrushali Gore
Ranch Hand

Joined: Oct 17, 2005
Posts: 40
I am using JavaScript to fill in elements in list on the page. My code adds all options properly to list. But when i view the new page it is by default selecting all the options in list. Wherein none of the option should be selected. Is there any solution to this problem? Is there any property to be set that will deselect all the options?

Thanks in advance.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Just make sure that in your JavaScript code, you set the selected property of each option to false.


Merrill
Consultant, Sima Solutions
 
 
subject: Problem with html:select