Hi, I have a question about adding JavaScript via Theme Options.
If I have script like below, is there some format I have to follow when I paste it for it to work? Like <script> or jQuery or anything? (This is my first time to try using js). And does it matter if it goes in Header or Footer?
Hi, I have a question about adding JavaScript via Theme Options.
If I have script like below, is there some format I have to follow when I paste it for it to work? Like <script> or jQuery or anything? (This is my first time to try using js). And does it matter if it goes in Header or Footer?
Thank you!
$('#fragrance').on('change', function(){
$('body').addClass('class-1');
});
Hi there,
If you want to add jQuery then this is the method to add it:
Best regards,
Laborator Team
Fantastic, thanks so much!