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 |
---|---|
207 | |
178 | |
63 | |
51 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023