I have following jquery code, which is working fine. But if i do mouseover on multiple divs frequently. previous mouseleave doesnot work.
Can anybody tell me how to resolve this issue. Also i want to add some delay to call ajaxToolTip(bookmark_id) function. i tried setTimeout(ajaxToolTip(bookmark_id, 3000); but it doesn't make any effect.
$(document).on({
mouseenter: function () {
/* Send Ajax Request for data */
bookmark_id=$(this).find('.move_icon').attr('serial');
$(this).addClass('hovertool_'+bookmark_id);
ajaxToolTip(bookmark_id);
},
mouseleave: function () {
bookmark_id=$(this).find('.move_icon').attr('serial');
$(this).removeClass('hovertool_'+bookmark_id);
$('.publichoverbox_'+bookmark_id).remove();
}
}, '.boxespublic');
Does anybody tell me how to do this Thanks