Rich-text Reply

Why I can't use jQuery width() in Optimizely?

jasot 01-10-17
Accepted Solution

Why I can't use jQuery width() in Optimizely?

I thought Optimizely utilizes jquery. However, it doesn't recognize the "width()" method. For example: $("body").width(490);

 

Thanks,

Jason

Level 2

RyanC 01-10-17
 

Re: Why I can't use jQuery width() in Optimizely?

It does if on the settings tab on your Project you select "Include full jQuery 1.11.3"

Read more: https://help.optimizely.com/Set_Up_Optimizely/Project_Settings_JavaScript_and_jQuery_settings#Includ...
Ryan
------------------------------------------------
The best solution is the simplest.

https://www.linkedin.com/in/ryan-camilleri
http://midnightknights.com
Experimentation Hero
jasot 01-10-17
 

Re: Why I can't use jQuery width() in Optimizely?

Thank you Ryan! Didn't know Optimizely only using the trimmed version. Smiley Happy
Level 2