오류 내가 얻고 전에 제대로 작동하는 데 사용 내 JS 중 하나에이 오류를 얻고있다
Uncaught Error: Syntax error, unrecognized expression: .formsetFormField:not(.treeLevel):not([name$=-TOTAL_FORMS]):not([name$=-INITIAL_FORMS]):not([name$=-MAX_NUM_FORMS]), input[type=checkbox][name$=-DELETE], input[type=hidden][name$=-slide], , input[type=file]
내 코드는 내가 2. 여러 V를 사용하여 시도이 표현을 수정 1. 같은 많은 방법을 시도
if (typeof opts.getAllInputs === "undefined") {
node._getAllInputs = function(withManagementForm) {
withManagementForm = (typeof withManagementForm === "undefined") ? withManagementForm : false;
if (withManagementForm) {
return $(this).find("> .nestedFormsetsFieldsSection > li > input:not(.treeLevel), > .nestedFormsetsFieldsSection > li > textarea");
} else {
return $(this).find("> .nestedFormsetsFieldsSection > li > input:not(.treeLevel):not([name$=-TOTAL_FORMS]):not([name$=-INITIAL_FORMS]):not([name$=-MAX_NUM_FORMS]), > .nestedFormsetsFieldsSection > li > textarea");
}
};
} else {
node._getAllInputs = opts.getAllInputs;
}
이 같은입니다 Jquery의 포화. 나는 1.7.1의 객체를 만들었고 다음 접근법을 사용했다.
<script type="text/javascript">
var jQuery_1_7_1 = $.noConflict(true);
</script>
그러나 나는 더 많은 오류를 얻는다.
내가 볼 수있는 유일한 해결책은 누군가가 JQuery와 1.11.0
@kunalManwar 그 대답에 언급 된,하지만 당신이 그것을 기쁘게 해결 얻을. – Jai
고마워요 ... 도움이 귀하의 답변을 표시 :) –