Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i open and close Ajax accordion on mouse-over and mouse-out
Posted
Comments
Zoltán Zörgő 16-Apr-13 7:09am    
Not a really good idea, imagine that a panel opened by mouse-over is sliding out from benieth the pointer, thus it receives a mouseout event, and closes, but by sliding back, receives a mouseover again and opens again... and so on...

JavaScript
$('#accordion').mouseover(function(){
$( "#accordion" ).accordion({ active: true});
});
 
$('#accordion').mouseout(function(){
$( "#accordion" ).accordion({ active: false});
});
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900