Thanks to the response of @Johan I was doing further debugging and found the solution:
el.find('a')[0].click();
So the real problem was not the changing DOM but the click()
event that apparently can only be applied to a single element and not to a list of only one element.
Some further discussion about click()
not firing can be found here: Can I call jquery click() to follow an <a> link if I haven't bound an event handler to it with bind or click already?