I have a javascript function that tries to determine whether a div is visible and does various processes with that variable. I am successfully able to swap an elements visibilit
Try like this:
$(function () { // Handler for .ready() called. if ($("#mydivID").is(":visible")) { alert('Element is visible'); } });
FIDDLE
Please make sure to include the jQuery file inside the head tag, as follows
head