I am trying to make each "card" of a WordPress plugin clickable on my website. I have inserted a Pure JS element with the following code:
document.getElementsByClassName('fc_card-container').onclick = function() {alert('It works!');}
Unfortunately, it is not working as expected. Can someone please help me figure out what I am doing wrong? Any assistance would be greatly appreciated. Thank you!