admin管理员组文章数量:1304149
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 badges2 Answers
Reset to default 7This 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');
本文标签: javascriptjeditabledisable it at runtimeStack Overflow
版权声明:本文标题:javascript - jeditable - disable it at runtime - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741781524a2397338.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论