I’m trying to see if I’ve selected the right element with jQuery, using console.log($(this)) and I get [object Object]
Why is that and how do I get the element’s name?
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.
jQuery objects are alway array’s, if you want to have the object itselve, use it as an array, like:
Get the name:
Get the tagname: