$('a').click(function (event)
{
event.preventDefault();
//here you can also do all sort of things
});
Then you can put in every href whatever you want and jQuery will trigger the preventDefault() method and you will not be redirected to that place.