From: Anthony Talarico Date: Wed, 23 Dec 2015 15:10:31 +0000 (-0500) Subject: testing removal of div X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6b2045223fa52073563016b28fae88b007e40914;p=WP-Themes%2Fmichsci.git testing removal of div --- diff --git a/js/app.js b/js/app.js index c9a825d..f53ad86 100644 --- a/js/app.js +++ b/js/app.js @@ -71,5 +71,11 @@ $(document).ready(function () { $("#categoryDropdown").change(function() { $("#catSubmit").submit(); }); - $("div[style='clear:both']").remove(); + + + $('div').filter(function() { + return $(this).css('clear') == 'both'; + }).css("clear", "none"); + + }); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index fb16697..5e88deb 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -51,5 +51,11 @@ $(document).ready(function () { $("#categoryDropdown").change(function() { $("#catSubmit").submit(); }); - $("div[style='clear:both']").remove(); + + + $('div').filter(function() { + return $(this).css('clear') == 'both'; + }).css("clear", "none"); + + });