$(document).ready(function() { $("input:text").mouseup(function(e){ e.preventDefault();}); $("input:text").focus(function () { $(this).select(); }); });
<input type="text" value="Existing Text" /> <input type="text" value="Old value" />