I was wondering if you can stop text being editable on click? I have a separate edit button to make the text editable and that's the only way that I want the user to be able to edit the text, so want to turn off the on click editing?
Any ideas?
Britt is right, add a custom event, and trigger it with a button for example. Here is some code to explain it:
The custom event:
$('#id').editable('http://www.example.com/save.php', {
event : 'custom_event'
});
And the trigger:
<button onclick="$('#id').trigger('custom_event');">click to trigger</button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With