Open In App

jQuery UI Selectable disable() Method

Last Updated : 15 Dec, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

jQuery UI consists of GUI widgets, visual effects, and themes implemented using the jQuery JavaScript Library. jQuery UI is great for building UI interfaces for the webpages. It can be used to build highly interactive web applications or can be used to add widgets easily.

The jQuery UI Selectable disable() method is used to disable the selectable widget. This method does not accept any parameter.

Syntax:

$( ".selector" ).selectable( "disable" );

CDN Link: First, add jQuery UI scripts needed for your project.

<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

Example:

Output:

Reference: https://api.jqueryui.com/selectable/#method-disable


Next Article

Similar Reads