(function($) { $.fn.selectonfocus = function() { this.on('focus', function() { var jEl = jQuery(this); jEl.select(); // Work around Chrome's little problem jEl.on('mouseup', function() { // Prevent further mouseup intervention jEl.off("mouseup"); return false; }); }); this.focus(); }; }(jQuery));
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16445 | christiane_renck | Rename/move file(s) | ||
//guest/christiane_renck/MergeQuestJS/main/src/lib/jquery/jquery.selectonfocus.js | |||||
#1 | 16444 | christiane_renck | Adding MergeQuestJS to the Workshop. |