[eluser]meigwilym[/eluser]
I'm still not sure, but here goes.
Jeditable is to make the text itself clickable and editable. SO when you click on the text you want to change, the text changes to a text box, and it can be edited. When OK is clicked, the text is passed to a url, with a POST array.
This would mean that you don't need the edit link in your table, users can click straight on the text itself.
If you want to hide the cancel link, then this may work:
Code:
<!-- html -->
<tr class="journalentry">
<td>date</td><td class="edit">Editable Text</td><td class="cancel"><a href="#">delete</a></td>
</tr>
<!-- JS -->
[removed]
$('.edit').click(function(){
$(this).parent('tr.journalentry').children('td.cancel').hide();
});
[removed]
I'm not sure though. Try it and see. But I'm sure your original code ovecomplicates things.
Mei