how to get elements between to divs and check if they are visible with jquery code example
Example: element is hidden jquery
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");
// The same works with hidden
$(element).is(":hidden");