Capturing change of top value of style property using JQuery

In my page I am dynamically changing the top value for the style div, i.e.

<div id = "div1" style = "top: 89;" > Test </div>

What do I need to capture an event with JQuery and the top value is changed to 88 or 90?

0


a source to share


1 answer


There is no event that is raised when the style of an element changes, so this is not possible.



If you change the style of the element yourself using jQuery, you can of course create an event of some kind there.

0


a source







All Articles