克隆表并添加带有输入文本字段的新列

时间:2011-12-10 09:58:39

标签: jquery jquery-selectors

我有一张这样的表:

<table class="table sortable" id="table_rolecart">
              <thead>
                <tr>
                  <th scope="col" class="sorting">
                    remove
                  </th>
                  <th scope="col">
                    <span class="column-sort">
                      <a class="sort-up" title="Sort up" href="#"></a>
                      <a class="sort-down" title="Sort down" href="#"></a>
                    </span>
                  Role Name
                  </th>
                  <th scope="col">
                    <span class="column-sort">
                      <a class="sort-up" title="Sort up" href="#"></a>
                      <a class="sort-down" title="Sort down" href="#"></a>
                    </span>
            Role Description
                  </th>
                </tr>
              </thead>
              <tbody>

              <tr class="odd">
                  <td><a href="#"><img src="/gra/images/icons/fugue/cross-circle.png" class="move-row" alt="Remove"></a></td>
                    <td><span style="color: black;">sharepoint_readonly</span></td>
                    <td><span style="color: black;">Role with read-only access to Sharepoint Document Repository</span></td>
                </tr><tr class="even">
                  <td><a href="#"><img src="/gra/images/icons/fugue/cross-circle.png" class="move-row" alt="Remove"></a></td>
                    <td><span style="color: black;">agile_unix_box</span></td>
                    <td><span style="color: black;">Role with read/write access to Agile repository Unix Server</span></td>
                </tr></tbody>

            </table>

我需要将此表复制到下一页上的另一个表中,单击“下一步”按钮,并在每行输入2 =新行,其中输入类型=文本,其中一列具有与之关联的日期选择器。新页面上的结果表格位于表单内,我需要在点击该页面上的“提交”时保存它 如何克隆此表上的数据并向其中添加所需的列? 问候, Priyank

0 个答案:

没有答案