Input: select text on focus (fix for Chrome)
$("input[name='answer']").focus(function(){
this.select();
});
// fix for CHROME
$("input[name='answer']").mouseup(function(e){
e.preventDefault();
});
Written by Maurizio
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#