If I want to check if a div is visible I use:
if($('#step2').is(':visible')) {
If I use fadeIn()
to show the div, it is not visible on page load. What can I use instead of .is to trigger some code? I am thinking about .on()
but don't see how
I know I can do it in the callback of fadeIn()
but the question is how to do it outside the callback.
Thanks