hd.
hd.

Reputation: 18346

liteAccordion with mouseover event

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

Answers (3)

11684
11684

Reputation: 7517

In v2 you can do

$("#myDiv").liteAccordion({
    activateOn: "mouseover"      // or click
});

Upvotes: 1

Jazaret
Jazaret

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

Sotiris
Sotiris

Reputation: 40096

you can edit the plugin and replace the two occurrences of .click with .mouseover in liteaccordion.jquery.js

Upvotes: 1

Related Questions