Welcome Guest, Not a member yet? Register   Sign In
jquery + jeditable question
#4

[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>

&lt;!-- JS --&gt;
[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


Messages In This Thread
jquery + jeditable question - by El Forum - 10-17-2008, 02:47 PM
jquery + jeditable question - by El Forum - 10-17-2008, 03:01 PM
jquery + jeditable question - by El Forum - 10-17-2008, 03:09 PM
jquery + jeditable question - by El Forum - 10-17-2008, 03:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB