Prevent Default Behaviour of Hashed Anchor Tag with jQuery
Prevent Default Behaviour of Hashed Anchor Tag with jQuery
Way back in the day, I use to always set up my event triggering anchor tags a certain way to prevent their default behaviour of having to click-through to a URL or named anchor:$( 'a[href="#"]' ).click( function(e) { e.preventDefault(); } );
留言
張貼留言