Update: disableTestSelect

Introduction

Received a kind comment from dehneg the other day, he pointed out the disableTextSelect plugin has no way of enabling the text select after it’s been disabled, pretty large thing for me to neglact. So here is an updated version with enableTextSelect.

Requirements

Compatibility

So far the plugin has been tested in windows using the following browsers.

Usage

HTML

1
2
3
<p class="disableSelection">
    this text can't be selected.
</p>

Javascript

1
2
3
$(function() {
    $('.disableSelection').disableTextSelect(); // and enableTextSelect() to re-enable it again
});

Downloads

jquery.disable.text.select.js
jquery-disable.text.select.example.htm
jquery.disable.text.select.pack.js