Just wondering , what i can do to check if exist anything after a div.
In this example in this cases should return True :
In this case should return False :
I try to use $(‘#text’).next().length ,but not working.Special for the 1st example.
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.
Not sure if exists a shorter way, however:
Basically we check in first place if there is any Element node using
next()(so,<br/>or other elements) if there is, then it’s enough. Otherwise, we check if there is anynextSiblingobject, and if it has a value that is not empty string (so any whitespace is not take in account).