Jeditable - disable it at runtime

Is it possible to disable jeditable for a table at runtime?

Happening:

I have different steps for the user, the table is always visible, but should be editable in just one step. The user can switch the steps as desired.

I did not find anything about this in jeditable docs.

I tried to remove the trigger class, but after initialization it does not affect "editable" ("editable" is more German than English, but I think you understand me;)).

Thank!

+5
source share
2 answers

That's an example. I hope you will be helped:

$(document).ready(function() {
     $(".editable").editable("http://www.example.com/save.php";, {
         indicator : '<img src="img/indicator.gif">',
         type : "textarea",
         submit : "OK"
     }, function(value, settings) {
         $(this).unbind(settings.event);
     });
});

jEditable: ,

+7

IMHO, :

jQuery(".editable").editable('disable');

jQuery(".editable").editable('enable');
+2

All Articles