Originally Posted by
enz1m3
So I can suppose that code isn't simply executed... try to unbind() before the click() method... it should work that way.
It doesn't work:
Code:
$('.tabs > .titles a')
.unbind()
.die()
.click(function ()
{
alert('just a test');
})
On middle click it opens a new tab and the alert doesn't show.
Originally Posted by
enz1m3
As for the the mouseup, if you change the alert to a return false or use the unbind() before the mouseup(), does it still work as expected (not opening the new tab)?
No, it still opens the new tab:
Code:
$('.tabs > .titles a')
.unbind()
.die()
.mouseup(function ()
{
return false;
})
Bookmarks