Code Challenge - Exploring jQuery Methods
This challenge asks that you work in teams to select buttons to add click events triggering a variety of jquery methods on corresponding paragraphs and elements in the page.
Tasks
- Fork this repository.
- Clone your fork.
- cd into local folder for this challenge.
- In the js/methods.js file lookup each method labeled in a comment for example you can lookup the usage for
//hide
athttp://api.jquery.com/hide
. - Select each button from the index.html page that is labeled with an id number for example
#b1
and use the click event method to write the code necessary to trigger the paragraph (in index.html) below the button to behave as the button is labeled for example#b1
should.hide()
paragraph 1#p1
. The first example is filled in. Repeat this for all remaining buttons and targeted elements. As a reference you can see a live code example here.
Resources
View Code Challenge - Exploring jQuery Methods on Learn.co and start learning to code for free.