$('input[type=text]').bind({ focus : function() { this.select(); }, mouseup : function() { return false; } });