mouseevent - Mouse hover in jQuery -
i added code mouse hover (status_id varies):
$("#test"+status_id).mouseover(function(){ $('.data'+status_id+'a').show(); });
but, not show mouse hover. adding alert print class :
alert("#test"+status_id) $("#test"+status_id).mouseover(function(){ $('.data'+status_id+'a').show(); });
caused function start working properly. don't know why difference. suggestions?
i think part: $('.data'+status_id+'a')
create before after call it. use this:
$(document).on("mouseover","#test"+status_id, function () { $('.data'+status_id+'a').show(); });
note: hope $('.data'+status_id+'a').show();
mean somthing this:
<a class="data5" ></a>
Comments
Post a Comment