可编辑设置
$('.editable').editable('includes/notes/save.php', {
loadurl : 'includes/notes/load.php?id=' + $(this).find("div").prop("id"),//undefined child ID
type : 'text',
onblur : 'submit',
indicator : '<img src="includes/notes/indicator.gif">',
style : 'display: inline'
});
html
<tr class="items">
<td>
<?php echo $data['item_name']; ?>
</td>
<td>
<div class="editable inventory-notes">
<!-- need to get the child id below into jeditable -->
<div id="<?php echo $data['id']; ?>">
<div class="add_note"></div>
<div class="edit_note"></div>
<div class="delete_note"></div>
</div>
</div>
</td>
</tr>
如何将 ID$data['id']
转换为 jeditable loadurl
?我正在使用 jQuery 1.6.2。该数据集大约有 1,200 行。