Write code that will check if there is no visible section using the code above. If there is none, it will use the jQuery show() function on the div with ID #error that we added on line 18 for you. code example

Example 1: CHECK IF 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");

Example 2: jquery is element hidden

// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");