Skip to content Skip to sidebar Skip to footer

On Click Of An ''a'' Element, Fire It's Hover Handler Instead Of Going To The Link

I am working with a CMS that doesn't allow me much to do in terms of editing their code. I have this element: ).on( 'click', function( ev ){ ev.preventDefault(); // stop click event $( this ).trigger( 'hover' ); } );

Solution 2:

Solution 3:

Use the below script and trigger hover event

$( '.menu_icon' ).click(function(){
 $(this).trigger('hover');
 returnfalse;
});

Post a Comment for "On Click Of An ''a'' Element, Fire It's Hover Handler Instead Of Going To The Link"