jquery
html focus
xemaker
2019. 2. 9. 06:54
If your code is:
<input type="text" id="mytext"/>
And If you are using JQuery, You can use this too:
<script> function setFocusToTextBox(){ $("#mytext").focus(); } </script>
Keep in mind that you must draw the input first $(document).ready()
<input type="text" id="mytext"/>
And If you are using JQuery, You can use this too:
<script> function setFocusToTextBox(){ $("#mytext").focus(); } </script>
Keep in mind that you must draw the input first $(document).ready()