jQuery: Select Input Text
It never fails, I always fail to remember how to select in input's content on focus. Here's the magic code in jQuery.
// Select textbox content
$("input[type=text]").focus(function() {
$(this).select();
});
It never fails, I always fail to remember how to select in input's content on focus. Here's the magic code in jQuery.
// Select textbox content
$("input[type=text]").focus(function() {
$(this).select();
});