I'm trying to figure out how I can get an input field to have all its content auto selected when a user simply clicks on it once. This will prevent the user from having to drag the mouse to select, and inadvertently not select the whole line.
I've seen this implemented on several sites but am unsure of how it's done. Any help is much appreciated!