too much recursion
Posted: Thu Oct 21, 2010 10:09 pm
this code:
[text]$(document).ready(function() {
$('body').click(function(evt) {
if(evt.target.nodeName === 'A' && $(evt.target).hasClass('cross-link')) {
$('a[href=#2]').trigger('click'); } });});[/text]
given me and error of "too much recursion"
how can i solve this?
[text]$(document).ready(function() {
$('body').click(function(evt) {
if(evt.target.nodeName === 'A' && $(evt.target).hasClass('cross-link')) {
$('a[href=#2]').trigger('click'); } });});[/text]
given me and error of "too much recursion"
how can i solve this?