menaka1510 / FEWD_Week4

0 stars 0 forks source link

Assignment grading #3

Open wmyers opened 8 years ago

wmyers commented 8 years ago
Technical Requirements Does Not Meet Expectations (0) Meets Expectations (1) Exceeds Expectations (2)
Prevent a form submission with the event.preventDefault() function 1
Use the $.ready() handler to delay your code from executing until all DOM assets have been loaded 1
Select the appropriate DOM elements with CSS selectors upon a user's click using the $.click() handler 2
Have the text in the `tag slide down along with a "Read Less" link in the blog post using,`$.slideDown()`and`$.show()
Hide the "Read More" link using $.hide() 1
Have the `slide up and hide the "Read Less" link using,`$.slideUp()`and`$.hide()
Show the "Read More" link using $.show() 1
Using the same functions as above, if a user clicks the "Learn More" link in the sidebar, have the inside that slide down and hide the "Learn More" link using $.slideDown() and $.hide() 1
TOTAL: 7/16
wmyers commented 8 years ago

Nearly there. The problem is that you are applying hide() and then chaining slideUp("slow") afterwards. This will make it hide first so you never see the slide up.

menaka1510 commented 8 years ago

Aah! Dang it..silly mistake..will fix it in my code and update