Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Merge branch 'master' of github.com:mathiasbynens/jquery-noselect

* 'master' of github.com:mathiasbynens/jquery-noselect:
  README: Add JavaScript syntax highlighting
latest commit 51bac1d397
Mathias Bynens authored January 11, 2012
Octocat-spinner-32 .gitattributes
Octocat-spinner-32 .gitignore First commit. Fo’ real this time February 06, 2010
Octocat-spinner-32 README.md README: Add JavaScript syntax highlighting January 02, 2012
Octocat-spinner-32 jquery.noselect.js Add `msUserSelect` January 11, 2012
Octocat-spinner-32 jquery.noselect.min.js Add `msUserSelect` January 11, 2012
README.md

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

Something went wrong with that request. Please try again.