I understand that with javascript you can select the contents of a textbox with the following code (in jQuery):
$(\"#txt1\").select();
Is t
what about this:
$("input").focus(function(){
this.selectionStart = this.selectionEnd = -1;
});
I'd like to suggest a simple solution
$("input[type=text]").focus(function() {
$(this).select();
});
$("input[type=text]").blur(function() {
$('input[type="hidden"][value=""]').select();
});
//code....
$("#txt1").focus();