In my functions.js I have:
$(document).ready(function() {
$("#cat").hover(function() {
$("#kiti").show();
})
$("#kiti").mouseout(function() {
$("#kiti").hide();
})
})
Html file:
<a id="cat" href="#">category</a>
<div id="kiti">
<a href="#">sub1</a>
<br /><a href="#">sub2</a>
</div>
Why, when I hover over sub1, sub1 and sub2 hide? If it's simple text, it's ok. I hope you got my question.
Edit: By the way. Is there any way to make something like die();
or exit();
from php in javascript to stop execution?