If we are writing some code using jQuery and want to know if a particular element in your page is visible or hidden you can do that using is() method,
Code Example:
<div id="hiddenEle" name="hiddenEle" style="display:none">This div is hidden</div>
<div id="visibleEle" name="visibleEle" style="display:block">This div is visible</div>
console.log($('#hiddenEle').is(":visible"));
console.log($('#visibleEle').is(":visible"));
Output:
false
true

Example - jQuery check if element is hidden
✌️jsfiddle: https://jsfiddle.net/0wxy8ect/4/
More Posts related to jQuery,
- How to check if an element is hidden using jQuery code?
- Disable jQuery button after being click
- Make div element draggable using jQuery
- Get Browser Screen Width and Height dynamically using jQuery
- jQuery : Move to top of the page
- [jQuery] Uncaught ReferenceError: $ is not defined at index.html:5
- Redirect page using jQuery
More Posts:
- MySQL 1005 Error : SQLSTATE: HY000 (ER_CANT_CREATE_TABLE) Message: Can't create table '%s' (errno: 150) - MySQL
- How to enable disable SharePoint Developer Dashboard for tracing troubleshooting - SharePoint
- How to reload Zsh .zshrc Profile - zsh
- Set Environment Variable in PowerShell for Mac - Powershell
- Fix java.net.ProtocolException: Invalid HTTP method - Java
- Read Java JDBC Connection Details from Properties File - Java
- How to Check AWS SNS Permissions using CLI - AWS
- Google Celebrates Rosa Bonheur 200th birthday with a Google Doodle - Google