Conditional Selector
-
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
orhide()
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditional Selector’ is closed to new replies.