My browser keeps freezing. I can't even load the page


#1

Whenever I go to resume my progress on number 5. JQuery Selectors. I can't go on any further in the lesson.
I have tried to select all of my code and delete it but, that still doesn't work. What should I do?
This is the link to it:
https://www.codecademy.com/courses/learn-javascript/lessons/javascript-dom/exercises/jquery-selectors?action=lesson_resume


#2

Please show us your code so we can analyze it. Thanks.


#3

Here is a screenshot of the whole page.


#4

Here is the actual code.

...
/*var skillset =
document.getElementsbyClassName('skillset');
alert(skillset):*/
function main(){
$(document).ready(main);
};

$(document).ready(main);
...


#5

We would prefer you to post raw code, rather than a picture, but in this case the error is obvious... Recursion.

Your program is continually calling itself in an infinite loop.


#6

So how can I fix it?
I can't even edit the code before it freezes.


#7

Expand the editor window so the preview browser disappears. That should let you remove the line inside the function.


#8

Thank you, that worked great.


#9

This topic was automatically closed after 7 days. New replies are no longer allowed.