This is html code:
<a class="cat" href="#">category</a>
<span class="kiti" style="position:absolute; padding:5px; margin-left:-18px; display:none; background-color:#000">
<a href="#">sub1</a>
<br /><a href="#">sub2</a>
</span>
And functions.js
$(document).ready(function() {
$(".cat").hover(function() {
$(this).next().slideDown(300);
});
$(".cat").mouseout(function() {
$('.kiti').slideUp(300);
});
});
How to make, that it would allow to press sub1 and sub2, because when I try it, sub-category hides. Thank you.