Skip to content

Instantly share code, notes, and snippets.

@TheBojda
Created May 29, 2020 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBojda/d3024571c1fe83ef15591b504d471e1c to your computer and use it in GitHub Desktop.
Save TheBojda/d3024571c1fe83ef15591b504d471e1c to your computer and use it in GitHub Desktop.
Simple jQuery example
<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