What am i doing wrong?
im not understanding if i have to select the first one and hide it as well? And i cant seem to target the first name... i thought it had the number #0?
<!DOCTYPE html> <html lang="en"> <head> <title>Document</title> </head> <body> <h2>Student List</h2> <ul class="student-list"> <li>James McAvoy</li> <li>Alena Holligan</li> <li>Wade Christensen</li> <li>Matt Krzyzynski</li> </ul> <script src="jquery-3.2.1.min.js"></script> <script src="app.js"></script> </body> </html>
Steven Parker187,287 Points
The task 2 instructions say "You've just learned about the next() and prev() methods. Use one of them to traverse from Wade Christensen to James McAvoy in the list of students."
There's no mention of "hide" in the instructions, you only need to do the traversal. Also, the "prev" method does not take an argument (but you can chain more than one of them together).