This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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
 
wood burning stoves
 
subject: Problem with html:select
 
It's not a secret anymore!