JQuery Toggle which disables other links
Posted
by
Matt Jameson
on Stack Overflow
See other posts from Stack Overflow
or by Matt Jameson
Published on 2012-11-15T22:57:40Z
Indexed on
2012/11/15
22:59 UTC
Read the original article
Hit count: 227
jQuery
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?
© Stack Overflow or respective owner