I have been playing around with jeditable for 2 days now, and it's great!
But I got a little problem, I have a link which should be editable, but whenever the field become editable, I can't edit that field, when I click, it jumps right to that link.
Any solution?
Here is my code
<a href="$homeurl/$hashkey" class="editsubject" id="$hashkey">$subject</a><span class="edittrigger" style="cursor:pointer;background:#EEEEEE;">edit</span>
$(document).ready(function() {
$('.editsubject').editable('editsubject.php', {
event : 'editclick',
cancel : 'Cancel',
submit : 'OK',
indicator : 'Wait...',
id : 'hk',
name : 'ns',
css : 'inherit'
});
$('.edittrigger').bind('click', function() {
$(this).prev().trigger('editclick');
});
});
Thanks