1
사용하려고 시도하고 있습니다 : https://github.com/markcell/jquery-tabledit/blob/master/README.md 양식에 데이터를 보내도록 설정 했으므로 불행히도 현재 양식의 식별자가 포함되어 있지 않습니다. 도움이 필요하시면 고맙겠습니다. . HTML 코드 :jquery-tabledit 식별자를 보내지 않음
나는 웹 사이트의 예를 사용하고
<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"}']]
}
});
이후의 데이터 만 편집 된 필드와 작업입니다. 게시물에 식별자를 추가하는 데 도움이 될 경우 가장 감사하게 생각합니다. 이것에 대해 처음부터 알 수 있듯이,
감사 답변을 많이
<th>
을 계속해야처럼이 보이는
<th scope="row">2</th>
<td scope="row">2</td>
에 변경하고 싶습니다. 내 시간을 저장 했어. –