Aminesrine
Aminesrine

Reputation: 2140

Jquery mobile and mouseover event

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");
});

Upvotes: 3

Views: 11174

Answers (1)

Jivings
Jivings

Reputation: 23250

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");
});

Upvotes: 1

Related Questions