Created
May 29, 2020 07:08
-
-
Save TheBojda/d3024571c1fe83ef15591b504d471e1c to your computer and use it in GitHub Desktop.
Simple jQuery example
This file contains 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
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> | |
</head> | |
<body> | |
<span id="msg">Hello World!</span><button id="btn">Push me!</button> | |
<script> | |
$('#btn').click(function() { | |
$('#msg').html('Hello jQuery!'); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment