Not Able To Find $(this) Object's Parent In ZeroClipboard (v2.1.6) Plugin
Got the answer with the help of @LanderVanBreda zeroClipboard.on('copy', function (event) { var highlight = $(event.target).parent().nextAll('.highlight').first() event.cli
Solution 1:
Posting it as an answer :
Because the this is used inside an event we can never know where 'this' refers to. I'm always scared of 'this'.
So solvable by :
$(event.target)
Instead of
$(this)
Post a Comment for "Not Able To Find $(this) Object's Parent In ZeroClipboard (v2.1.6) Plugin"