Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

I'm looking for clojurescript code for the below jquery code. Please help!

$('h3').on('click', function() {
    $(this).toggleClass('active');
});

1 Answer

+1 vote
by

https://google.github.io/closure-library/api/goog.dom.classlist.html#toggle

(require '[goog.dom.classlist :as gc])

(gc/toggle node "active")
...