E
E
EvgMul2015-11-09 00:36:27
JavaScript
EvgMul, 2015-11-09 00:36:27

How to track changes in the position of an element in the DOM?

Hello, I use this plugin https://jqueryui.com/sortable/ to change the arrangement of elements on the page.
There was a need to track changes in the location of any element.
Those. at that moment when I dragged the element and released the mouse, the function should work.
Please tell me how this can be done. Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton B, 2015-11-09
@EvgMul

On the same site, see the Events column .
The update event suits you:

$( ".selector" ).sortable({
  update: function( event, ui ) {}
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question