Re: Quick questions -- how do I place the cursor (i.e., set focus) to a field on page load?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yeah, but adding in jquery will open up his entire world :)

the example below will work without jquery. personally though i try to
stick with jquery since i usually need it for more throughout my site.

On 11/13/07, Chris <dmagick@xxxxxxxxx> wrote:

> It only works if you have included the jquery javascript files.
>
> If you don't want to use that you could do something like:
>
> <script defer>
>   document.getElementById('username').focus();
> </script>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux