JQuery

JQuery check element is visible or not

  • dinesh

    is(‘:visible’) is working fine.thnkx

  • Mull1

    if( $(‘#myDiv’).is(‘:visible’) ) is not working.if( $(‘#myDiv’).css(‘display’) == ‘none’ )is working.!
     

    • Thanks.Try to use this ,
      if( $(‘#myDiv:visible’) ) { // visible}