data attribute in JS
Posted: Tue Nov 17, 2015 9:12 pm
Hi,
I am trying to include some JavaScript in a global content block. It's all working fine except for a data-attribute that i have on an element. As soon as i save the code the data attr is removed.
Everything is wrapped in a literal tag.
Any tips on how to get this working is appreciated.
I am trying to include some JavaScript in a global content block. It's all working fine except for a data-attribute that i have on an element. As soon as i save the code the data attr is removed.
Everything is wrapped in a literal tag.
Any tips on how to get this working is appreciated.