jQuery addClass example
Change class name on click in jQuery
by jay0727
HTML
<div>
</div>
JavaScript
// find elements
var banner = $("#banner-message")
var button = $("button")
// handle click and add class
button.on("click", function() {
banner.addClass("alt")
})