10
rated 0 times
[
14]
[
4]
/ answers: 1 / hits: 15232
/ 11 Years ago, wed, february 27, 2013, 12:00:00
I'm having trouble getting the else bit of this working. Anyone know what the problem is?
var navOpen = false;
if (navOpen == false) {
$(nav).click(function() {
$(this).css(bottom,0);
navOpen = true;
});
} else {
$(nav).click(function() {
$(this).css(bottom,-84);
navOpen = false;
});
}
More From » jquery