Rich-text Reply

Performing a test on all elements on a page through class

haakonmlster 04-22-16

Performing a test on all elements on a page through class

Hi, 

 

i want to be able to change elements(within the same class) on my page, but how do i do it?

 

Best regards, 

 

Haakon

MJBeisch 04-22-16
 

Re: Performing a test on all elements on a page through class

Click the <edit code> tab at the bottom of the experiment editor to open the code drawer for that variation. You can then write javascript/jquery to target an element by class to make changes. If you were previously using the point-click interface to set up experiments, what that's "really" doing is just writing the script code for you. More details in this Knowledge Base article:

https://help.optimizely.com/Build_Experiments/The_Code_Editor_and_Variation_Code
Matt Beischel - E-Commerce Optimization Specialist CohereOne

Level 2