As in the Question text, how can I get the last action performed on document using jQuery.
For example I have changed element class as below
$('.highlight').toggleClass();
How can know that which element was the target of last change in a document
You could create a custom event and trigger it each time ?
Then listen for the triggered event
http://api.jquery.com/trigger/