{"id":661,"date":"2012-10-27T14:08:49","date_gmt":"2012-10-27T14:08:49","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=361"},"modified":"2012-10-27T14:08:49","modified_gmt":"2012-10-27T14:08:49","slug":"jquery-checking-hidden-or-visible-status","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/jquery-checking-hidden-or-visible-status\/","title":{"rendered":"Jquery Checking Hidden or Visible Status"},"content":{"rendered":"<p>In jQuery, suppose you have an element of some kind that you&#8217;re hiding and showing, using .hide(), .show() or .toggle(). How do you test to see if that element is currently hidden or visible on the screen?<\/p>\n<pre>\n \/\/ Checks for display:[none|block], ignores visible:[true|false]\n $(element).is(\":visible\") \n<\/pre>\n<p>You can use the &#8220;hidden&#8221; and &#8220;visible&#8221; selectors.<\/p>\n<pre>\n $('element:hidden')\n $('element:visible')\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In jQuery, suppose you have an element of some kind that you&#8217;re hiding and showing, using .hide(), .show() or .toggle(). How do you test to see if that element is currently hidden or visible on the screen? \/\/ Checks for display:[none|block], ignores visible:[true|false] $(element).is(&#8220;:visible&#8221;) You can use the &#8220;hidden&#8221; and &#8220;visible&#8221; selectors. $(&#8216;element:hidden&#8217;) $(&#8216;element:visible&#8217;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-jquery"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=661"}],"version-history":[{"count":0,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/661\/revisions"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}