EasyUI Forum
May 02, 2024, 11:17:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to fire onStopDrag event when stop drag the div  (Read 10472 times)
balri771
Newbie
*
Posts: 9


View Profile
« on: December 11, 2013, 10:37:28 PM »

how to fire onStopDrag event when stop drog the div .
my code
<div id="a" ></div>
 $('#a').draggable({
                 revert: false,
                 //            proxy: 'clone',
                 onStartDrag: function (e) {
                     $(this).draggable('options').cursor = 'not-allowed';

                 },
                 onStopDrag: function (e) {
                     drag();
                 }
             });
the function drag don't be triggered when I stop drag the div.it is just too weired.anyone can help?
thanks a lot!
blari


Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 12, 2013, 12:04:26 AM »

Please refer to this example http://jsfiddle.net/qWwKD/. It works fine.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!