Introduction:
Here I will explain how to use jQuery to check if div contains text (data) or not or jQuery check div contains content (data) or not or jQuery check whether div contains empty or not.
Description:
In previous articles I explained jQuery Slideup Slidedown and SlideToggle Effects Example, jQuery drag and drop div example, jQuery dropdown with images, jQuery show alert message while leaving from website, jQuery Countdown timer script example and many articles relating to jQuery and asp.net. Now I will how to check if div contains text (data) or not.
In previous articles I explained jQuery Slideup Slidedown and SlideToggle Effects Example, jQuery drag and drop div example, jQuery dropdown with images, jQuery show alert message while leaving from website, jQuery Countdown timer script example and many articles relating to jQuery and asp.net. Now I will how to check if div contains text (data) or not.
If we want to check div contains data or not we need to
write the code snippet like as shown below