I have some HTML that looks like this,
<div id="mb_contents" style="visibility: visible; opacity: 1; width: 600px; height: 450px;">
I am trying to turn the visibilty to hidden using this js/mootools,
$('mb_overlay').set('styles', {
'visibilty': 'hidden',
});
However nothing seems to be working, am I missing something?
There’s a method called
setStyle. In your case you’d use it like this:I think what you are actually doing with your code is setting an attribute called
styles, which doesn’t really exist.