Created
May 1, 2015 19:54
-
-
Save joeyemery/a9437507f5a656184e8f to your computer and use it in GitHub Desktop.
jQuery
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
$(document).ready(function() { | |
$('button#show').on('click', function() { | |
£('p').show(); | |
}); | |
$('button#hide').on('click', function() { | |
$('p').hide(); | |
}); | |
}); |
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> | |
<title>jQuery demo</title> | |
</head> | |
<body> | |
<p>Hello</p> | |
<button id="show">Show</button> | |
<button id="hide">Hide</button> | |
<!-- JS --> | |
<script src="jquery.js"></script> | |
<script src="app.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment