Skip to content Skip to sidebar Skip to footer

Having Trouble Using Jquery To Click On A Link

I'm just trying to click on a link with jquery. Here's my code. When I click on the link manually it works, so I know the link is good. $(this).find('td:first > * > a').cli

Solution 1:

Uncaught RangeError: Maximum call stack size exceeded occurs when your call stack is too deep. This usually means you're calling a function that keeps call itself, possibly via another function.

There must be something else on the page that is interacting with this script. Does your click handler execute the click handle by any chance? ;)

Solution 2:

Dale,

Changing your code to use:

window.location = $(this).find("td:first > * > a").attr("href");

is not the preferred way to do this. It would bypass all other event listeners that would have been called and it assumes the link has an absolute path.

Post a Comment for "Having Trouble Using Jquery To Click On A Link"