【发布时间】:2017-07-17 06:00:20
【问题描述】:
我正在尝试使用:https://github.com/markcell/jquery-tabledit/blob/master/README.md,并对其进行设置,以便将数据发送到表单,不幸的是,它目前不包括表单帖子中的标识符,如果提供任何帮助,将不胜感激。
我正在使用网站上的示例: HTML 代码:
<table class="table table-striped table-bordered" id="example">
<caption>
Click the table cells to edit.
</caption>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
$('#example').Tabledit({
url: 'example.php',
editButton: false,
removeButton: false,
columns: {
identifier: [0, 'id'],
editable: [[1, 'First Name'],[2, 'Last Name'],[3, 'Username', '{"1": "@mdo", "2": "@fat", "3": "@twitter"}']]
}
});
帖子中的唯一数据是已编辑的字段和操作。将标识符放入帖子中的任何帮助将不胜感激。正如你所知道的那样。,
【问题讨论】:
标签: javascript jquery jquery-plugins tabledit