Using $(this) or this

Using $(this) or this

  1. <script src="https://code.jquery.com/jquery-1.10.2.js"></script>

  2. <p class='first'>p1</p>
  3. <p class='second'>p2</p>
  4. <p class='third'>p3</p>

  5. <script>
  6. $('p').after(function(i,v) {
  7.   return "<div><b>" + $(this).className + "</b></div>";
  8. });
  9. </script>

Output

  1. p1
  2. undefined
  3. p2
  4. undefined
  5. p3
  6. undefined


Why I can't use $(this) here? Why I must use 'this'?