How Select all DIV text with single mouse click

Spread the love

Sometime you need to enable select particular content for your site’s visitors because it is difficult to select manually.If you wanna help your site visitors to select content or code snippets in just single click then here is a small and effective code in javascript that   can select div holder text in just single click.You just need to copy paste below code and just pass the div id or class to this function.

contenteditable select all text, discontiguous selection is not supported, javascript highlight div onclick, javascript select div by class, jquery select text on click, mdn getselection, select text in div jquery, this.select is not a function

Testing the above code..

Leave a Reply

Your email address will not be published. Required fields are marked *