locked
Jquery dialog window gets stuck and drags with curso RRS feed

  • Question

  • User625498869 posted

    Hello Everyone, 

        I am facing problem with Jquery dialog window. Can u please help me. Issue is i am, calling jquery dialog window on button click and it's draggable. When i drag and drop the window on it's header, then it's not stick with the mouse pointer. otherwise, if i drag from the header and drop other than header, other surface it's stick with the mouse pointer and come with the mouse pointer. 

    how can i fix this once. 

    any help would be thankful.

    Thanks in Advance

    Satish Ch

    Monday, January 18, 2016 7:05 AM

Answers

  • User61956409 posted

    Hi Satish,

    You could refer to the following sample code to make jQuery UI dialog draggable.

    $("#mydialog").dialog({ draggable: false });
    
    $("div.ui-dialog").draggable();
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 19, 2016 2:55 AM

All replies

  • User61956409 posted

    Hi Satish,

    You could refer to the following sample code to make jQuery UI dialog draggable.

    $("#mydialog").dialog({ draggable: false });
    
    $("div.ui-dialog").draggable();
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 19, 2016 2:55 AM
  • User625498869 posted

    Hi Fei Han, 

    It's working now...

    Thanks

    Satish

    Tuesday, January 19, 2016 7:52 AM