Hey all. So I’m trying to get a altered version of this codepen: http://codepen.io/teetteet/pen/Iwaqb working in Meteor. In the pen, it uses a simple jQuery statement to toggle a class on/off on a click event. It works fine in the pen, but in app the click event doesnt seem to trigger the toggle. If i manually go into the console and enter
$('.cover').toggleClass('open'); all the panels flip down as they should. Any thoughts?
Is there a more “Meteor” way to go about triggering this event?
My first thought with Meteor would be to have a Template helper return the class, but im not sure how i would go about triggering that on a click event.