Originally Posted by rangana
From a first glance, it's caused by the original
variable being in the local scope of the click function listener you created.
The quickest solution is to remove highlighted:
var original = $(this).html();
...and somewhere on top of everything, set original
as a global variable by:
Lastly, I'm surprised $('.cancelButton').click(
works. I should have suggested to use live() method instead.
Hope that helps.
Thanks for the reply.
Your solution did not work, however. I still have the same problem.
What should I be doing with the live() function?