2
편집 가능한 ("파괴")를 사용하여 xeditable을 켜고 끄려고합니다. Xeditable은 꺼지지 만 다시 켜지지 않습니다. 이 기능은 다음과 같습니다editable ("destroy")를 사용하여 xeditable을 껐다 켭니다.
$("#changeType").on("change", function() {
switch ($(this).prop("checked")) {
case true:
$("#status").editable("destroy");
$("#status").editable({
showbuttons: false,
onblur: 'ignore',
mode: 'inline',
send: 'never',
success: function (params) {
return false;
}
}).editable('show');
break;
case false:
("#status").editable("destroy");
("#status").editable();
break;
};
});
내 jsfiddle http://jsfiddle.net/ykay/vdoz07qz/3/
에서 ($ 기호 누락) 오타가 있습니다를 참조하십시오. 답변을 무효화하는 방식으로 질문을 편집하지 마십시오. –