(function(){

window.onload = function() {
    $("input").click(function(e) {
        $(e.target).select()
    })
}
    
})()