Monday, September 30, 2019

How can I set the default value for an HTML element?



I thought that adding a "value" attribute set on the











However, this did not work as I had expected. How can I set which element is selected by default?



Answer



Set selected="selected" for the option you want to be the default.





No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...