Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('.draggeble').draggable(
- start: function() {
- this.addClass('drag');
- };
- stop: function() {
- this.removeClass('drag');
- var x = this.offset().left;
- var y = this.offset().top;
- $.ajax({
- url: "setplace.php",
- type: "POST",
- data: "x=" + x + "&y=" + y,
- });
- };
- });
- });
Add Comment
Please, Sign In to add comment