How to check whether a html element is hidden(visible) or not using Jquery     There is some

How to check whether a html element is hidden(visible) or not using Jquery     There is some situations we may get to check whether t
Generic placeholder image

Mukesh R

How to check whether a html element is hidden(visible) or not using Jquery

    There is some situations we may get to check whether the element is visible or not . For some situation like
    1.Avoid hidden elemnts while validation
    2.Avoid hidden when reading the values
    
    We can use below codes fo find whether a html element is hidden or not using Jquery.
    
    Consider a div
    
        <div id="popup" style="display:none">
        </div>
        
    Check whether this element is visible or not using Jquery    
    
 
   var isVisibleOrNot=$("#popup").is(':visible');

    
    you will get value true or false according to the element hidden or visible.
    
    There is an another way you may useful for some situations
    
    $("#popup:visible").hide();