I am working on a website in which I want to check whether element has any content in it.
Below is my html code. I have mentioned condition#1 where
I think you can edit a bit in your code .not(":empty") to .html()
.not(":empty")
.html()