Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    I want the SELECT to display again the default value. I did that, and the display does not show the default value again Commented Feb 28, 2012 at 22:43
  • 1
    It'will if the default option is at index 0. It its in other index use that index. See jsfiddle.net/gN3ke/2 here I have used Option2 as default. And set selectedIndex to 2 Commented Feb 28, 2012 at 22:47
  • 2
    sorry it's not working in 2019 || can you provide any working example? Commented May 17, 2019 at 20:35