问题
I want that when I move the mouse on a label I alert("something"), I have tried many functions but always the alert only works when I click on the label and not when I just move it on the label!! I have tried:
$("#show").mouseover(function(){
alert("something");
});
$("#show").mouseenter(function(){
alert("something");
});
$("#show").live('vmouseover', function() {
alert("something");
});
$("#show").hover(
function () {
alert("something");
});
回答1:
You want to look at the mobile specific virtual events that jQuery-Mobile provides. Their descriptions can be found here:
http://jquerymobile.com/demos/1.1.0-rc.1/docs/api/events.html
In particular, you are asking for mouseover:
$("#show").vmouseover(function(){
alert("something");
});
来源:https://stackoverflow.com/questions/9904868/jquery-mobile-and-mouseover-event