EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 02, 2024, 11:17:27 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
how to fire onStopDrag event when stop drag the div
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to fire onStopDrag event when stop drag the div (Read 10472 times)
balri771
Newbie
Posts: 9
how to fire onStopDrag event when stop drag the div
«
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
Re: how to fire onStopDrag event when stop drag the div
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...