lundi 7 janvier 2019

If/Else statement to show/hide element if class name present

I can only use JavaScript on this particular CMS. I need help getting a script that will only show an image IF a class name is present. I'll be loading 3 images at the same time. But I can only show a specific image IF the class name is present, and the OTHER images should be hidden if the OTHER class names are NOT present.

I haven't tried any other code, as I'm new to JavaScript and haven't found anything online that matches this situation to help me.

Aucun commentaire:

Enregistrer un commentaire