Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <form action="/action_page.php">
- First name: <input type="text" name="fname" autofocus><br>
- Last name: <input type="text" name="lname"><br>
- <input type="submit">
- </form>
- <p><strong>Note:</strong> The autofocus attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p>
- </body>
- </html>
- <script>
- jQuery(document).ready(function($) {
- $('').focus();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement