I have a bit of JQuery in my app that adds a click event to a class. The click event just removes a class on the parent element.
$(function(){
$(".flash .close").on("click", function(){
$(this).parent().removeClass("active");
})
});
This is the only use of JQuery in my entire application, so I'd love to re-write this snippet without JQuery so I can eliminate that as a dependency all together.
However, I'm not sure where to begin in terms of implementing this click even in native javascript. I don't know much about JavaScript and the little that I do know involves frameworks like JQuery and React.
Thanks!