Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

jQuery UI Selectable create Event

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

jQuery UI consists of GUI widgets, visual effects, and themes implemented using Query 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 create event is used to triggered when selectable is created.


    create: function( event, ui ) {}

Bind event listener to the selectablecreate event:

$( ".selector" ).on( "selectablecreate", function( event, ui ) {} );


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

<link rel=”stylesheet” href=”//”>
<script src=”//”></script>
<script src=”//”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href=
    <script src="//"></script>
    <script src="//"></script>
        h1 {
            color: green;
        #list .ui-selecting {
            background: greenyellow;
        #list .ui-selected {
            background: green;
    <h3>jQuery UI Selectable create Event</h3>
    <ul id="list">
        <li>Data Structure</li>
        <li id="GFG1">HTML</li>
        <li id="GFG2">Bootstrap</li>
            create: function() {
                alert("Create Event is Triggered!")



My Personal Notes arrow_drop_up
Last Updated : 07 Dec, 2021
Like Article
Save Article
Similar Reads
Related Tutorials