JQuery Toggle which disables other links
- by Matt Jameson
Is there a way of disabling another link, the re-enabling them with the toggle function.
here is my script so far. I would like to disable 'military' when I've clicked on 'Entertainment', but then re enable the link when the toggle returns.
$("[href='#Entertainment']").click(function () {
$("#Entertainment").toggle("slow");
});
$("[href='#Military']").click(function () {
$("#Military").toggle("slow");
});
Is there anyway of doing this?