I recently integrated tabledit into a webpage, following various examples. However, the plugin is not functioning as expected - nothing is being posted and the result is empty. I am unsure how to get the posting feature to work properly. Can you offer me some guidance?
Here is a basic script:
<table class='table'>
<thead>
<tr>
<th>Id</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Doe</td>
<td>Doe</td>
<td><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8c2c7c0c6e8cdd0c9c5d8c4cd86cbc7c5">[email protected]</a></td>
</tr>
</tbody>
</table>
<script>
$('.table').Tabledit({
url: 'index.php',
columns: {
identifier: [0, 'id'],
editable: [
[1, 'col1'],
[2, 'col2'],
[3, 'col3']
]
}
});
</script>
While everything seems simple and functional - with buttons for saving and deleting posts via AJAX - there are no fields or formdata present. How can I address this issue?