I think the issue was by ths following , So I'm trying to figure out why my buttons don't work on a checklist app I'm making. The idea is that you enter into the text field, delete it with the deleteBtn, and should be able to strike-through the text when the doneBox is clicked. , You are missing brackets in line number 3 of your code.
jQuery toggleClass('class', 1000) toggles for only 1s then turns off, not toggles with a 1s animation
jquery flip switch not working using jquery-toggles
By : Anand Bansal
Date : March 29 2020, 07:55 AM
like below fixes the issue I have created a simple example of using Simon Tabor's "jquery-toggles" plugin (https://github.com/simontabor/jquery-toggles). And although it works, the graphics never show up. I confirmed the CSS and JS is loading fine, yet still no images. Can someone figure out why? , You need to wrap your toggle with the proper theme.
will be helpful for those in need See if this helps at all.... I use "https://rawgithub.com" to do CDN as that is what they suggest.... HOWEVER this is NOT meant for production type environments so don't do that
Hope this helps You're binding your click listener to .question. You have a button with that class inside a div with that class. Your event is dispatching twice (once from each object), so the toggle is negated. You can see it in the console - all your log entries are doubled. See the snippet below, the fix is basically just be more explicit with your selector: