I'm having an issue with the document.querySelector
in my JavaScript code. It currently only selects the first div that contains the class "test", but I need it to select all such divs.
Is there a way to achieve this using my existing JavaScript?
var removeCurveStroke = document.querySelector('.test');
if(removeCurveStroke.classList.contains('card-decorator-stroke')){
removeCurveStroke.classList.remove("card-decorator-stroke");
removeCurveStroke.classList.add("brand-curve-stroke");
}
Any assistance on this matter would be greatly appreciated. Thank you