title: Changing the value of an input inside a table cell in JQuery
body: <p>I am trying to get JQuery to renumber the 'Order' column after Sorting them. Here is the code:</p>
  
  <pre><code>// Sorting
  
      $(function() {
  
      $("#sortable").sortable({cursor: "move"});
          $("#sortable").disableSelection();
  
      });
  
      // Renumber
  
      $("#sortable").sortable({
  
          stop: function (event, ui){
  
              $(this).find('tr').each(function(i){
  
      // this is where the problem is:
  
                  $(this).find('td:last').$(this).find('input').val(i+1);
  
              });
  
          }
  
      });
  </code></pre>
  
  <p>So, what is the proper way of getting the value field?</p>