We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    OK my friends at the end i decide to use a Java script code to delete the html code are when the TV is empty!

    Here is if someone has the seem problem, this is a very good solution and works SWEET!!!


    <script type="text/javascript">
    $(document).ready(function () {
    $(".dollarsPrice").each(function (index, value) {
    if ($(this).html() == undefined || $(this).html() == "") {
    $(this).parent().parent().parent().remove();
    }
    });
    });
    </script>

    Thank you my friends, i love modx but this is the first time that i give up!!!

    Thank you!
      --
      ysanmiguel.com
      • 19369
      • 1,098 Posts
      Ok, you need to wrap the code with the "code" tag, otherwise it will not show up.
        • 33238
        • 388 Posts
            $(document).ready(function () {
                $(".dollarsPrice").each(function (index, value) {
                    if ($(this).html() == undefined || $(this).html() == "") {
                        $(this).parent().parent().parent().remove();
                    }
                });
            });


        ;)
          --
          ysanmiguel.com