I have my jquery:
$('.category-block').mouseover(
function (e) {
$(this).find('.b-expand').show();
});
$('.category-block').mouseout(
function (e) {
$(this).find('.b-expand').hide();
});
And sample html:
<div class="category-block" id="category-1">
<a href="#">Mod</a>
<div class="b-expand" id="block-expand-1">
TEST
</div>
</div>
The above appears to work in Firefox and IE but not Safari and Chrome. Any ideas?
Thanks.
EDIT:
If I change the js to:
$('.category-block').mouseover(
function (e) {
$('.b-expand').show();
});
$('.category-block').mouseout(
function (e) {
$('.b-expand').hide();
});
It will work, however of course showing all the b-expand's not just the one under the parent. Thus t he problem is with the find?
There are no css properties which dont show it. Also there are no js errors thrown.