Question

How can I cancel jquery.address behavior?

$('a').unbind(); // Doesn't work for me..
Was it helpful?

Solution

just took a look at the library and there is no specific function is exposed for unbinding but I did see a private function call _unload but you cant access it..

anyways I would take a shout at using the autoUpdate function.. pass false to it and see..

OTHER TIPS

unbind works for me but it starts behaving like a normal like a normal anchor link and will redirect to the href set in it. If you don't its default behavior then you can try this.

//Please use a appropriate selector to select only the anchors to which you have
//applied address plugin
$('a').unbind().click(function(e){
   e.preventDefault();
});

http://jsfiddle.net/6rMHh/

$('body').delegate('a','click',function(){
    return false;
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top