tags:

views:

267

answers:

2

I tried $.isshown() but there is not this function

+6  A: 

I think this should work:

$(elem).is(":visible");
Quintin Robinson
+1  A: 

use the :visible selector:

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

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

piquadrat