html button is requiring 2 clicks to toggle class? – Jquery
I am currently struggling to get a function working with a button that has an onclick event to toggle a class. Please can you review the code and help me understand why it is needing two clicks and how to…