For A/B testing purposes i'd like to change the class name of an element. I can add Javascript to the A/B testing tool to achieve this. As i'm quite new to javascript, i could use some help.
The current element:
<ul class="products-grid products-grid--max-4-col first last odd">
Must be changed to:
<ul class="products-grid products-grid--max-3-col first last odd">
How can i perform this by using Javascript?