I have a problem here. When my mouse hover over a div, a text appear in the div. And when it is on mouseout from the div, the text will disappear. My problem is however when the mouse is over the appeared text, it will treat that it is mouseout from the div, causing the text to disappear. How can i do to avoid that? I want the text to remain as long the mouse is in the div even though it is above the text. Thanks..
<div class="passd"></div>
$('.passd').live("mouseover", function(){
if($(this).children('#passopt').length==0){
$(this).append('<p id="passopt">appear text</p>');
}
});
$('.passd').live("mouseout", function(){
$(this).children('#passopt').remove();
});