[Solved] change the parent div class on click
JQuery has a parent function to get the parent of a given element https://api.jquery.com/parent/ $(“.submit”).click( function (){ $(this).parent().toggleClass(“banner expand_it”); }); solved change the parent div class on click