From 6b2045223fa52073563016b28fae88b007e40914 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 23 Dec 2015 10:10:31 -0500 Subject: [PATCH] testing removal of div --- js/app.js | 8 +++++++- js/custom/upcp.js | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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"); + + }); -- 2.17.1