Sounds like a simple question:
We have to similar divs:
<div class='child'></div><div class='child'>SMTH SMTH</div>
How do I determine that the first one has 0 value and the second one is populated? Is there any specific jQuery or JS function?
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.
Use the
emptyselector, possibly combined withisto determine if at least one of the matched elements meets the given selector.Example: http://jsfiddle.net/andrewwhitaker/txeEE/