I’m debugging a piece of jquery and found this snippet which i don’t understand.
Would someone mind breaking it down so that I can research the individual parts?
window.specific = $('.' + specific_class);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
specificis defined in “window scope” outside the function.specific_classwould have some class name in it and it is used in jQuery selector and matched elements are assigned towindow.specific.Live Demo