TOGGLE

by firegroove

HTML

<button id="foo" class="first">Click Me, Watch My Color Change</button>

CSS

.first {
  color: blue;
}

.second {
  color: red;
}

JavaScript

$('#foo').click(function() {
  $(this).toggleClass('first second');
});