最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jeditable - disable it at runtime - Stack Overflow

programmeradmin0浏览0评论

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

The case:

I got different steps for the User, the table is always visible, but should be just in one single step editable. The user can switch the steps as he likes.

I found nothing about that in the jeditable docs.

I tryed to remove the triggering class, but after initialization, it does not effect the "editability" ("editability" is more german than english, but I guess you understand me ;)).

Thanks!

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

The case:

I got different steps for the User, the table is always visible, but should be just in one single step editable. The user can switch the steps as he likes.

I found nothing about that in the jeditable docs.

I tryed to remove the triggering class, but after initialization, it does not effect the "editability" ("editability" is more german than english, but I guess you understand me ;)).

Thanks!

Share Improve this question asked Feb 20, 2011 at 12:14 maddin2codemaddin2code 671 silver badge4 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

This is an example. I hope can help you:

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

From this link jEditable: how to remove behaviour answered by plugin's author

IMHO, the simplest way is:

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

and if you need to enable it back

jQuery(".editable").editable('enable');
发布评论

评论列表(0)

  1. 暂无评论