Ver original<input type="text" autofocus="focus"> <script> $(function() {$('[autofocus]').focus()});</script>