{"id":909,"date":"2015-03-22T23:41:59","date_gmt":"2015-03-22T23:41:59","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2015\/03\/22\/jquery-hide-id-if-class-is-visible\/"},"modified":"2021-08-02T18:36:08","modified_gmt":"2021-08-02T18:36:08","slug":"jquery-hide-id-if-class-is-visible","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Programming\/Javascript\/jquery-hide-id-if-class-is-visible.html","title":{"rendered":"JQuery – Hide id if Class is Visible"},"content":{"rendered":"
In order to hide a class is a class is visable the following is used. Below will hide the div id #bannerad<\/span> is the class .back<\/span> is visible.<\/p>\n In order to hide a class is a class is visable the following is used. Below will hide the div id #bannerad is the class .back is visible. $(document).ready(function(){ if ($(‘.back’).is(“:visible”) == true) $( “#bannerad” ).hide(); });<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1264],"tags":[],"yoast_head":"\n$(document).ready(function(){ if ($('.back').is(\":visible\") == true) $( \"#bannerad\" ).hide(); });<\/pre>\n","protected":false},"excerpt":{"rendered":"