Looking for a solution that works for all browsers including on iPad/iPhone. I have reviewed the past posting for this question, and the one as follows is working all fine, except that it is not working on IE:
$("input[type='text'], textarea, input[type='password'], input[type='number']").live('mouseup', function(e) {
e.preventDefault();
});
$("input[type='text'], textarea, input[type='password'], input[type='number']").live('focus', function() {
this.setSelectionRange(0, 9999);
});