Sunday 15 February 2015

jquery - Get updated position of an element after click -


After clicking on a button, the left position of an element is animated, I have to get that new position, no That initial position <({Left: 300}); Var v = $ (click on '' '' '' '', function () {$ ('div.move'). Div.move '). Event (). Left; Console.log (v);});

You need to get value as callback Is: ({Left: 300}, function () {var v

  $ ('button'). ('Click', function () {$ ('div.move') . = $ ('Div.move'). Status () Left; Warning (V);});});   

Check

No comments:

Post a Comment