I am struggling with adjusting the function to trigger on 'click' instead of 'hover'. I have attempted changing 'hover' to 'click' and using 'toggle' but have not seen any positive outcomes.
$('#menu li').hover(
function(){
$(this).stop().animate({height: '100px'},1000,function(){});
$(this).find('div').show(600);
}
,
function(){
$(this).stop().animate({height: '20px'},1000,function(){});
}
);
Do I need to bind the event in order to switch it to 'click'? Any assistance would be greatly appreciated.
Here is the fiddle link for reference: http://jsfiddle.net/GANeX/7/