jQuery looping through class

jQuery looping through class

I'm trying to loop through a class called payload and get all of their weights.
When I run my code all I see in the  console.log () is one line with a total of 9 (there are 9 TR rows.
.
I need to loop through each one of the rows and see their weight values.

Thank you for any help...

  1. $('.payload').each(function() {
    	console.log($(this).val());
    });
  2. <td><INPUT TYPE="text" class="payload" value="<?php echo $php_row->Weight?>"></td>