Posts

Showing posts from July, 2014

jQuery Check DIV Contains Content (Data) or Not

jQuery Check DIV Contains Content (Data) or Not By:  Suresh Dasari  Jul 1, 2014 Categories:  Javascript  ,  JQuery 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. If we want to check div contains data or not we need to write the code snippet like as shown below < script   type ="text/javascript"> ...

jQuery Check if Radio Button is Checked (Selected) or Not By: Suresh Dasari Jul 2, 2014

jQuery Check if Radio Button is Checked (Selected) or Not By:  Suresh Dasari  Jul 2, 2014 Categories:  Javascript  ,  JQuery Introduction :  Here I will explain how to use  jQuery  to check if radio button checked / selected or not. In  jQuery  we can check if radio button selected / checked or not in different ways by using radio button properties prop or attr. Description :     In previous articles I explained  jQuery check if checkbox checked or not ,  jQuery dropdown with images , jQuery change style of controls ,  jQuery enable or disable hyperlinks ,  jQuery Countdown timer script example  and many articles relating to  jQuery  and  asp.net . Now I will how  to check if radio button checked / selected or not in  jQuery . We can check whether radio button checked or not in different ways those are Method 1 : var  status = $( '#rdb...