How to set the focus on drop-down list automatically when the page loads in HTML5?
The purpose of this article is to focus the drop-down list automatically when the page loads in HTML5.
The <select> autofocus attribute is a boolean attribute that specifies that the drop-down list should automatically get focus when the page loads.
Example: The following code demonstrates a drop-down list with autofocus.
Note: The autofocus attribute of the select tag is not supported in firefox.