Shopify themes, liquid, logos, and UX
Hi there,
I am using on my website a JS to switch DIVs with buttons, it works great, however on one page I want to do it twice, and unfortunately after doing the exact same code, only one works now. Is there any way I can get both to work together, maybe creating like a class? Using defer/async?
Not an expert on JS by any means, so may be a silly question.
Worth noting that the 'indepth-grid' class in the code it's for one of the snippets, the other have completely different classes and it's noted on the <script>
Thanks!
<script>
function show(param_div_id) {
document.getElementById('indepth-grid').innerHTML = document.getElementById(param_div_id).innerHTML;
}
</script>
User | RANK |
---|---|
61 | |
53 | |
47 | |
40 | |
39 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023