Ok so i have this relevant code in jQuery:
myself.insertAfter('.archive:last');
‘myself’ is just a variable containing a selector. So I remove the unnecessary class from it and apply the new one: ‘archive’. However, when i click the newly inserted element, the actions i want to run after clicking an element with a class of ‘archive’ on it, does not happen. Now i know why this is happening, i just dont know how to solve it. I need to unbind the original click handler and apply a new one, but how!?
Stab in the dark here but I’m assuming your click handler uses
Use the
onmethod instead