Here is the example of toggled element using the :visible or :hidden selectors.
var vis = $(‘#formdiv’).is(‘:visible’);
var hide= $(‘#formdiv’).is(‘:hidden’);
If you want to show a div visibility, then there is example for this
For example:
$(‘#formdiv:visible’).animate({left: ‘+=100px’}, ‘slow’);
