Table row cloning: remove data from row before clone

Table row cloning: remove data from row before clone

I am currently using this function to clone rows in my table when a user clicks 'add row'

  1. $(document).ready(function() {
  2.         $("#addrow").click(function() {
  3.             var row = $('#answer_options tbody>tr:last').clone(true).insertAfter('#answer_options tbody>tr:last');
  4.             $("td:eq(2)", row).text($("#answer_options tbody>tr").length);
  5.             $("td:eq(4) input", row).attr("name", "choice_text")
  6.             $("td:eq(5) input", row).attr("name", "blah")
  7.             return false;
  8.         });
The problem is, obviously, cloning the row also clones any of the data that the user may have already entered. I need to just clone the elements of the row, not the user entered data. Is there a way to remove all data from a row before it is cloned?