I use jquery .showto open div. This works fine for me, but I have a bit of a development problem, how to get it to check if it is open div. If so, I do not want it to repeat the function .show. What is the best way to do this?
I am currently using (jquery + jquery ui)
$(document).ready(function() {
$('.content').hide();
$(".open").click(function () {
$(".content").show("slide", { direction: "up" },1200);
});
$(".close").click(function () {
$(".content").hide("slide", { direction: "up" },1200);
});
});
source
share