You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would imagine something like $(this).unbind(<action>) would work. Where this is the element with the .editable class, and <action> is the class to trigger editable (click, dblclick), etc...
if you want to remove the editable ability from the field, just removeClass('editable').
If you want to unbind the previous editable action before running the editable action again, inside your jquery.editable.js, near the bottom in the edit.register function, you can do trigger.unbind(action).bind(action, edit.start); or something similar.
I just had to do the unbind(action) thing in my current project due to a bug where my code was calling the editable plugin multiple times on a single element/input which was causing the input to become blank and lose the e.target.old_value
How to unbind editable of a control?
Thanks
The text was updated successfully, but these errors were encountered: