Reputation: 18346
I am trying to use 'liteAccordion' jQuery plugin on my website.
This plugin works with click event,but i need it works with mouseover. Does it support mouseover event? and if yes,how can i define it?
Upvotes: 0
Views: 495
Reputation: 7517
In v2 you can do
$("#myDiv").liteAccordion({
activateOn: "mouseover" // or click
});
Upvotes: 1
Reputation: 3705
You can just add this line to your javascript.
$('#accordion h2').mouseover(function() {
$(this).click();
});
Or you can do what Sotiris advises and modify the plugin directly. It doesn't seem to have native mouseover support.
Upvotes: 1
Reputation: 40096
you can edit the plugin and replace the two occurrences of .click
with .mouseover
in liteaccordion.jquery.js
Upvotes: 1