업로드 양식을 제출할 때 경고가 표시됩니다. 아니요, 양식 번호는 submit
입니다. jQuery 버전 1.3.2를 사용하고 있습니다.오류 : 양식 요소의 이름을 "제출"으로 지정하면 안됩니다.
이 문제를 해결하려면 어떻게해야합니까?
업로드 양식을 제출할 때 경고가 표시됩니다. 아니요, 양식 번호는 submit
입니다. jQuery 버전 1.3.2를 사용하고 있습니다.오류 : 양식 요소의 이름을 "제출"으로 지정하면 안됩니다.
이 문제를 해결하려면 어떻게해야합니까?
방금 문제가 발생했습니다. 그것은 API/1.3/Selectors에서
$(':input[@name=submit]', form).length
을 말한다 jquery.form.js 파일의 라인 (54)에있어, 내가 1.2에서 1.3으로 내 jQuery를 버전을 교체 할 때 아마 문제를 가지고
Note: In jQuery 1.3 [@attr] style selectors were removed (they were previously deprecated in jQuery 1.2). Simply remove the '@' symbol from your selectors in order to make them work again.
말한다. 이제, 그 라인을 수정하거나 내 버전의 jquery.form.js를 대체해야합니다. 유 얻을 수있는 이유는 Form.js 당신이 오류의 팝을 얻을 수있는 이유는이 오류를 볼 수 아래 오류 코드가 아래에있는 코드를 확인에서
...
if ($(':input[name=submit],:input[id=submit]', form).length) {
// if there is an input with a name or id of 'submit' then we won't be
// able to invoke the submit fn on the form (at least not x-browser)
alert('Error: Form elements must not have name or id of "submit".');
return;
}
그래서 지금 당신은 이해 이 오류는 이제 솔루션은 매우 간단합니다 .. 코드 위
Step 1--> Check Your input type="submit" name="submit" id="submit"
그래서 그건 내가로서 지금까지 아래로 변경 한 다음 뭔가를 변경 양식에서 작동하지 않음 ..
enter code here
input type="submit" name="save" id="save"
thats It.
약간의 코드/html이 유용합니다. –
w3c에서 마크 업 유효성 검사를 시도하십시오. http://validator.w3.org/ – redsquare