<input style="cursor: pointer; background: inherit;color: inherit; " readonly onmouseover="this.select(); " onclick="that = this; setTimeout(function(){that.select()},150); " value="65533" type="text" />
(function() { const fnReCover = ($el) => { if ($el.data('val')) { $el.val($el.data('val')); } else { $el.data('val', $el.val()); } $el.focus(); $el.select(); } //Because it is adjacent to the selector in zblog $(".readonly + *").click(function() { const _this = this; setTimeout(function() { _this.select(); }, 150); fnReCover($(this)); }).mouseenter(function() { fnReCover($(this)); }).keyup(function() { fnReCover($(this)); }).change(function() { fnReCover($(this)); }); })();