Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with html:select

 
Vrushali Gore
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just make sure that in your JavaScript code, you set the selected property of each option to false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic