Advertisement
iEmanuele

Avoid default action on empty link

Feb 12th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function($){
  2.     $('ul.menu a[href="#"]').click(function(e){
  3.         e.preventDefault();
  4.     });
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement