Add/remove Class On Button Click
Problems with JavaScript add/remove class on button click. It just won't perform the function. Read through a number of stack overflow solutions, none worked for this particular si
Solution 1:
As of jQuery 1.7, the
.live()
method is deprecated. Use.on()
to attach event handlers.
Try this:
$("#showFormBtn").on("click", function() {
$("#WelcomeDiv").toggleClass("fadeOutUp animated hideWelcome");
$("#formInput").toggleClass("autoHide");
});
Post a Comment for "Add/remove Class On Button Click"