JavaScript jQuery Basics Understanding jQuery Events and DOM Traversal DOM Traversal with jQuery

how can i solve this?

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.

how can i solve that?

<!DOCTYPE html>
<html lang="en">
  <h2>Student List</h2>

  <ul class="student-list">
    <li>James McAvoy</li>
    <li>Alena Holligan</li>
    <li>Wade Christensen</li>
    <li>Matt Krzyzynski</li>

  <script src="jquery-3.2.1.min.js"></script>
  <script src="app.js"></script>
Jamison Habermann
Jamison Habermann
11,690 Points

The .prev() method in jQuery does not accept any arguments. Instead, you chain an additional .prev().


Thank you very much