[thelist] Simple HTML form question

Scott Brady evolt at scottbrady.net
Mon Mar 3 16:40:01 CST 2003

---------- Original Message ----------------------------------
From: David Dorward <evolt at david.us-lot.org>
>Word of warning: When the input grabs the focus any text in it gets
>selected. This often leads to the following sequence of events.

Maybe this is different amongst the browsers, but in my experience, you have to explicitly .select() the text to get it to automatically select the text upon loading.  .focus() just puts the cursor in the field without highlighting any text which might be there.

Scott Brady

More information about the thelist mailing list