Created
February 17, 2016 03:00
-
-
Save M-Drummond/0b21ff990fba2fbe5c39 to your computer and use it in GitHub Desktop.
jQUery basic click handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('button').on('click', function() { | |
var message = $('<span>Call 1-555-jquery-air to book this tour</span>'); | |
$('.usa').append(message); | |
$('button').remove(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment