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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -