大丈夫。私はjEditableが初めてです。jEditable で jQuery 検証を使用したい。説明させてください。ここでは、このような while ループでデータベースからテーブルをエコーしています。
<table id="example" class="display" cellspacing="0" border="0">
<thead>
<tr>
<th>
Name
</th>
<th>
Phone
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="items" userid="'.$row['id'].'" id="name">'.$row['name'].'</td>
<td class="items" userid="'.$row['id'].'" id="name">'.$row['email'].'</td>
</tr>
</tbody>
</table>
そして、これは私が使用しているjEditableスクリプトです
$(function() {
$("td.items").each(function(index) {
$(this).editable("handler.php", {
submitdata : {userid: $(this).attr('userid')},
indicator : "<img src='images/indicator.gif'>",
tooltip : "Doubleclick to edit...",
event : "dblclick",
onblur : "submit",
name : 'newvalue',
id : 'elementid',
});
});
jEditable が機能しています。それは素晴らしいです。jQuery 検証コードを使用したいだけです。それらをどこに置くのですか?