Ok. I've got the following script:
$('#exhibitions .item.plain').toggle(
function() {
$(this).css({
'height': '302px',
'z-index': '10',
'background': '#3F94AB'
});
$(this).find('p.title').css('color', '#E6E6E6');
$container.isotope('reLayout');
},
function() {
$(this).css({
'height': "130px",
'z-index': '0',
'background': '#CCC'
});
$(this).find('p.title').css('color', '#353334');
$container.isotope('reLayout');
});
Whereas .item.plain
is given to a div with nested anchor
. And when I click it which is obvious )) toggle()
is fired.
<div class="item plain">
<!-- some stuff -->
<a href="url I want to go"></a>
</div>
How do I fix this?
Thanks!