Is there any attribute for select tag in HTML like autoFocus for textbox ? So that select should have default focused. Means I want to do autofocus for select tag.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
You can use
autofocus
in the select tag as follows:If you run the code snippet and then immediately press enter or the down arrow then you will see that the select has the focus on the page. Is this what you wanted?