Dynamic functionality does not work after JQuery-1.7.1.js upgrade
<p>My app has the following functionality: when you select a table name (this app allows users to create tables), a little form will appear, allowing users to enter in table data. However, after upgrading from JQuery-1.6.1.js to JQuery-1.7.1.js, that functionality is broken. Here is my JavaScript code: </p>

<pre><code>function buildTableContents(e) {
  var elementName      = $(this).val(),
      pageName         = $(this).stepTypeField('page_name').val(),
      page             = pageCollection.findOrCreateByName(pageName),
      stepType         = $(this).stepType(),
      contentsTemplate = $('#templates .table_contents_container');

  var existingColumnId = parseInt(stepType.find('table th[data-column-id]').attr('data-column-id'));

  page.elements(function(elements){
    var columns = _(elements.tableColumns(elementName));

    if (columns.isEmpty() || columns.detect(function(e){ return e.id == existingColumnId;})) return;

    stepType.find('table').remove();

    var tableContents = contentsTemplate.clone();
        headerCell    = tableContents.find('tr:first th:eq(1)'),
        valueCell     = tableContents.find('tr:eq(1) td:eq(1)'),
        headerPadding = tableContents.find('tr:first th:last'),
        valuePadding  = tableContents.find('tr:eq(1) td:last');

    columns.each(function(column) {
      headerCell.clone().find('span').html(column.name).end()
                        .insertBefore(headerPadding);
      valueCell.clone().insertBefore(valuePadding)
                       .find('input').attr('name', 'step[table_contents][][' + column.id + ']');
    });

    headerCell.remove();
    valueCell.remove();

    tableContents.appendTo(stepType).show().focus();
  });
}
</code></pre>

<p>I read elsewhere on this site that when upgrading from 1.6 to 1.7, you should change instances of .attr to .prop, but this did not work for me. 
I don't believe it is necessary to share any .haml or .css code, but I will gladly do so if it'll help. Thanks!!</p>
