title: JQuery get table row and contents as HTML
body: <p>I want to use JQuery to get a table row and its contents as HTML.</p>
  
  <pre><code>var updateButton = $( this );
  var currentRow = updateButton.closest( 'tr' );
  window.console.log( currentRow );
  </code></pre>
  
  <p>but the resulting log doesn't seem to contain the table values input by the user.</p>
  
  <p>I've found answers about how to extract the data, but I want to be able to reproduce the row as html with the existing contents in the cells so I can output a copy of the row.</p>
  
  <p>Can this be done with a simple JQuery function, or do I need to rebuild the row using some combination of the result of my above code and the extracted data?</p>