Sunday, January 28, 2018

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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...