PDA

View Full Version : Question about setting opacity...



drbigfresh
23 Jul 2011, 7:35 PM
I see that I can set up the innerHTML using this for a div:
draggable.el.setHTML('This is some new content');

How can I adjust the opacity of the same element?
something like, draggable.el.style.opacity = 1; ??

Thanks!!

drbigfresh
23 Jul 2011, 7:43 PM
Nevermind, think I got it:
draggable.el.set({'style':{ 'opacity':'1' }});