I'm trying to figure out how to display a layer or not
if ($('.property > .evenprop').css('display','block')){
$('.otherprop').show();
}
else {
$('.otherprop').hide();
}
So if it's true
<div class="property">
<div class="evenprop" style="display:block">blah</div>
</div>
Then show this layer
<div class="otherprop">blahblah</div>
$('.otherprop').show();
If this is true
<div class="property">
<div class="evenprop" style="display:none">blah</div>
</div>
Then hide this layer
<div class="otherprop">blahblah</div>
$('.otherprop').hide();
It doesn't seem to work though any ideas?
thank
Jamie
source
share