Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xbXreN
<p id="targetParagraph">If you click on the "Hide" button, I will disappear.</p>
<p>BUT I WILL REMAIN</p>
<button id="hideThingsFromLaura">Hide</button>
<button id="showThingsToLaura">Show</button>
$(document).ready(function(){
$("#hideThingsFromLaura").click(function(){
$("#targetParagraph").hide();
});
$("#showThingsToLaura").click(function(){
$("#targetParagraph").show();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.