// find elements var modal = $("#modal") var button = $("button") // handle click and add class button.on("click", function(){ modal.show() })