Created
August 11, 2016 06:05
-
-
Save al5dy/02f1d63f5ade7a876f94f129a84f8c45 to your computer and use it in GitHub Desktop.
Выделяем всю область контента при одном нажатии.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', '.multitext', function () { | |
var range = document.createRange(); | |
range.selectNodeContents(this); | |
window.getSelection().addRange(range); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment