Set Default Value For An HTML Select Element




Here we consider how to set Default Value For An HTML Select Element. Suppose we have a Select Element on the from as shown below.

Set Default Value For An HTML Select Element, Set Default Value For Select Element, Default Value For Select Element, Select Element Set Default Value, Default Value For Dropdownlist, Default Item For Select Element, HTML, Asp.Net

We have to Select an age from the above Select Element. We can set a default value on this Select Element as follow. Just add selected="selected" on the option that needs to be set as Default Value.

Set Default Value For An HTML Select Element, Set Default Value For Select Element, Default Value For Select Element, Select Element Set Default Value, Default Value For Dropdownlist, Default Item For Select Element, HTML, Asp.Net

That's all, by this way we can Set Default Value For An HTML Select Element.