umarmughal / jquery-noselect

A jQuery plugin which disables text selection on any element. Useful for UI elements; evil for pretty much everything else.

Home Page:https://mths.be/noselect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

noSelect jQuery Plugin

This plugin disables text selection for any element you specify. This can be useful when dealing with UI elements sometimes.

As featured in Uniform — Sexy forms with jQuery.

Demo & Examples

http://mathiasbynens.be/demo/noselect

Example Usage

$('p.with-click-handler').noSelect();

Notes

Please do not use this plugin to disable text selection on entire documents. That’s just annoying.

Mathias

About

A jQuery plugin which disables text selection on any element. Useful for UI elements; evil for pretty much everything else.

https://mths.be/noselect


Languages

Language:JavaScript 100.0%