[Solved] Jquery how can i remove the class


You have wrong jQuery selector “nav”

$("nav ul").toggleClass("showing");

your HTML code doesn’t have that, instead it has “div”, try:

$("div ul").toggleClass("showing");

and also fix your CSS:

.showing {
max-height: 20em;
}

1

solved Jquery how can i remove the class