Home › Forums › JavaScript › magic line doesn’t stop when click on the link , coz the page refresh after clicking › Re: magic line doesn’t stop when click on the link , coz the page refresh after clicking
October 22, 2012 at 1:04 am
#112380
Participant
All you need to do is this:
$(selector).click(function(event){
// your code
event.preventDefault();
});
This will prevent anchor tag from performing it’s default task.