rptdng
Last Updated: February 25, 2016
·
2.501K
· wutupake

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();
});