I will start with my JSFiddle example:
http://jsfiddle.net/CR5FB/5/
Basically, I am trying to get the same effect as on this post ( JSFiddle here ), however I have some problems with its implementation - since I want to check several switch statuses of a div, and not just switch between two divs. I tried using the following:
$("#showcreate").click(function() {
if ($(".searchmenu").is(":visible")) {
$(".createmenu").toggle("fast");
$(".searchmenu").toggle("fast");
} else {
$(".createmenu").toggle("fast");
});
(So, if the search menu is open, close it and open the creation menu, but if it does not open, just open the creation menu).
I'm not sure if the function applies :visibleif I used $("div").hide()instead of displaying: none in css?
- , jquery ..