[thelist] javascript : events not firing after dom alteration

shaun at porkandpaws.com shaun at porkandpaws.com
Sat Jul 21 02:13:32 CDT 2007

I have an a tag that has unobtrusively had javascript applied to fire onclick
which carries out an ajax action 

Part of the action replaces this link. 

When I click it first time everything works fine. When I then click again the
ajax does not fire instead it does as expected goes to the href location to
carry out the action? 

Why does the onclick not work the second time round - do i need to reattach
event ( i do this at the moment on window.load) if so how? 

More information about the thelist mailing list