i am using the simple jquery addClass and removeClass function to toggle the class of the div on click but its not working. its working first time but second time its not working.
here is the jsfiddle link http://jsfiddle.net/chirag007/3xees0j8/
here is the jquery code.
$(".open-menu").click(function (e) {
$(".open-menu").addClass("close-menu1");
$(".open-menu").removeClass("open-menu");
});
$(".close-menu1").click(function (e1) {
$(".close-menu1").addClass("open-menu");
$(".close-menu").removeClass("close-menu1");
});
thanks for your help..
toggleClass("open-menu close-menu1");instead. jsfiddle.net/MelanciaUK/3xees0j8/5