3
I have a simple function in jQuery, but it is showing the error:
Uncaught Rangeerror: Maximum call stack size exceeded
for example, there are 2 or 3 links I have on the page
<a id="islpronto_link" href="javascript:void(0)" class="bot botchat">Fale Conosco</a>
What is causing this error?
Down with my code:
$('.botchat').click(function(){
$('#islpronto_link').click();
return;
});
Friend Ids can not be repeated, the only thing you did was to put the class in an input, seen by this angle it seems that you do not understand well yet DOM and Javascript, ie you are doing things randomly, on the kick. I recommend you review it well because this flaw, I’m just telling you why I want to help.
– Guilherme Nascimento
I get it, I’ll make it better. I’m grateful for the strength
– Celso Andre
Guilherme, I used the above logic just to understand how I would do, but I ended up doing otherwise, so I did not duplicate the Ids, but I know I need to study more JS, again I appreciate the help. strong hug
– Celso Andre