Stop links from executing with JavaScript -


i can stop normal inks working this:

  $('#container a').click(function(event) {     return false;   }); 

however site has existing javascript fires when link clicked. code above doenst stop these firing.

you may unbind click , stoppropagation

$('#container a').unbind('click').click(function(event) {    event.stoppropagation();    //event.preventdefault();    return false;  }); 

Comments