Checking if an element is hidden

You can use the hidden,visible selector:

The hidden selector:

// Matches all elements that are hidden
$('#myDiv').is(':hidden')

The visible selector:

// Matches all elements that are visible
('#myDiv').is(':visible')

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

DMCA.com Protection Status