is rendered using jQuery? I tried $ .isshown () but this function doesn't exist +2 jquery ...">

How can I tell if <div id = "target"> is rendered using jQuery?

I tried $ .isshown () but this function doesn't exist

+2


source to share


2 answers


I think this should work:



$(elem).is(":visible");

      

+12


source


use a :visible

selector:

if($('div#target:visible').length){
    alert('target is visible');
}

      



edit: use Quintin Robinson's solution, it's much clearer

+1


source







All Articles