I have the following code. I added the last line, and the var mytest = on line 3, and want to set the opacity to 0.3
var wrapper = document.createElement('div');
wrapper.classList.add('hotspot');
var mytest = wrapper.classList.add('info-hotspot');
mytest.style.opacity = 0.3;
Unfortunately getting the following error on line 4.
TypeError: Cannot read property 'style' of undefined
In CSS I have defined the opacity as 0.6 and I want to change it to 0.3
Anyone got advise or a clue?
thx, Joost