Hi
I am using jQuery slideToggle onclick and wan to know how i close other open toggle when i click on a new one.
I suppose i need to know how to deterim the state of a toggle and control as per that
my funcitons to toggle are below::
Code:
$("a#person1").click(function () {
$("div#person-1").slideToggle("slow");
});
$("a#person2").click(function () {
$("div#person-2").slideToggle("slow");
});
$("a#person3").click(function () {
$("div#person-3").slideToggle("slow");
});
Thanks
|