2017-02-26 3 views
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"}']] 
      } 
     }); 

이후의 데이터 만 편집 된 필드와 작업입니다. 게시물에 식별자를 추가하는 데 도움이 될 경우 가장 감사하게 생각합니다. 이것에 대해 처음부터 알 수 있듯이,

답변

1

방금 ​​같은 문제가 있었지만 알아 냈습니다. 오래된 예제를 사용하고 있습니까? 아니면 다른 웹 사이트에서 사용하고 있습니까? 나는 인라인 편집자를 찾음으로써 그것을 인식하지만, 나는 그것을 다시 찾을 수 없다.

어쨌든, 당신은 당신이 (이것은 아마도 속하는 곳) 헤더에

+0

감사 답변을 많이 <th>을 계속해야처럼

이 보이는

<th scope="row">2</th><td scope="row">2</td>에 변경하고 싶습니다. 내 시간을 저장 했어. –