Skip to content
Related Articles

Related Articles

Improve Article

jQuery UI dialog dragStart(event, ui) Event

  • Last Updated : 18 Jan, 2021

jQuery UI dragStart() event is triggered when the dialog box is started to be dragged.


$(".selector").dialog (
   dragStart: function( event, ui ) {

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

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



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=""></script>
    <script type="text/javascript">
        $(function () {
                autoOpen: false,
                dragStart: function (event, ui) {
            $("#gfg").click(function () {
    <div id="gfg2" title="GeeksforGeeks">
            jQuery UI | dragStart(event, ui) Event
    <button id="gfg">Open Dialog</button>


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :