jQuery toggle not working after addClass is called -


Then I have a click function that toggle a button on my page. I also have another function which adds a class to the button if the checkbox is checked. My problem is that if the class is added to the button then the click function gets hit, the toggle does not change inline style.

  $ (".btn"). Click (function () {$ (". AnotherBtn"). Toggle ();} function becomes aColoaded checkbox (check.) {$ (". AnotherBtn"). AddClass ("hideBtn");}