jquery if button clicked code example Example: on click jquery $( "#target" ).click(function() { alert( "Handler for .click() called." ); });