Created
November 23, 2011 17:01
-
-
Save wutupake/1389217 to your computer and use it in GitHub Desktop.
JS: input form - seleziono il contenuto al load della pagina (fix per CHROME)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("input[name='answer']").focus(function(){ | |
this.select(); | |
}); | |
// fix per CHROME | |
$("input[name='answer']").mouseup(function(e){ | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment