• Resolved Augusto Gentile

    (@agugentile)


    Hi, I am trying to do something like this:

    <script>
    
    jQuery(document).ready(function($) {
        if (class="wmc-currency wmc-active" && data-currency="USD"){
            $('.element-class').hide()
    }
    });
    
    </script>

    That was my attempt using jQuery. I don’t know which is the best way to do it, using a snippet or jQuery.

    I would like to display: none or hide() element by CSS class .element-class when <div class="wmc-currency wmc-active" data-currency="USD">

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi,

    Thank you for reaching out to us.
    To achieve your request, please use the script js below:

    if ($('.wmc-currency.wmc-active').data('currency') ==='USD'){
                    $('.element-class').hide()
                }

    Best regards.

    Thread Starter Augusto Gentile

    (@agugentile)

    Many thanks for your help, I really appreciate it.

    That was what I was looking for, it did the trick!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Selector’ is closed to new replies.