• Hi all, this plugin comes with drop down on hover and I want to change to click event. Obviously I am not very familiar with jQuery… but it seems this plugin does not use js file instead code right in php file. I found these codes in query-drop-down-menu.php

    if($include==2)
          {
    	   		$Jquerycode ='noCon("#dropmenu li").hover(function(){
    			noCon(this).find("ul:first").stop(true,true).slideToggle("'.$fadein1.'");
    			},
    			function(){
    			noCon(this).find("ul:first").stop(true,true).slideUp("'.$fadeout1.'");
    			});';
    		}
    		else
    		{
    			$Jquerycode ='noCon("#dropmenu li").hover(function(){
    		noCon(this).find("ul:first").stop(true,true).fadeIn("'.$fadein.'");
    		},
    		function(){
    		noCon(this).find("ul:first").stop(true,true).fadeOut("'.$fadeout.'");
    		});';
    		}

    which I think are about drop down on hover. I tried changing .hover(function(){ to .click(function(){ but no luck. What should I change? Many thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Jquery Drop Down Menu] How to Drop Down Menus on Click?’ is closed to new replies.