This is a known side-effect of toggle(). The documentation says:
The implementation also calls
.preventDefault()
on the event, so links will not be followed and buttons will not be clicked if.toggle()
has been called on the element.
To work around that, you will have to bind to click
instead of toggle
.
-- source --> jQuery: link doesn't work after .toggle()
So you could do something like :
$(document).ready(function(){
$("table.links").find("div").each(function(){
var toggler = false;
$(this).click(function(e){
toggler = !toggler;
if(toggler){
$(e.target).closest("div").children("div").slideDown(200);
}else{
$(this).children("div").slideUp(200);
}
});
});
});