What is the exact difference between jQuery prev() and :prev ?
I mean in terms of what they accept, return…I am asking this question as I had got an error earlier when i tried to add a $() selector after that..
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.
.prev()
is a method which you can call on any jquery object associated to a dom element. It will find the prev sibling element. If we pass selector toprev` method it will find the prev sibling only if the selector matches.