Posts

Showing posts with the label jquery-clone

How do I use buttons to select different elements from my document?

Image
Clash Royale CLAN TAG #URR8PPP How do I use buttons to select different elements from my document? I created a web page of my resume, which is organized by skills. At the top of the page, I have three buttons in the navigation: <p>Choose the type of experience you are interested in seeing:</p> <button class="button-w" type="button">Writing/Editing Experience</button> <button class="button-t" type="button">Teaching/Training Experience</button> <button class="button-c" type="button">Current Experience</button> I gave each corresponding section in the html document its own class. For example: to contain all my writing/editing experience. Then I wrote jquery to remove/detach all the other sections but the writing/editing. See below. It works for the first button I click on. But the problem is, when I then click on the "teaching/training experience" button, because I have a...