당신은 당신이 동일한 페이지에 유효성 검사를 처리 할 수있는 사용자 정의 submit
이벤트 핸들러와 양식 제출 처리 할 경우
//bind an event handler to the submit event for your login form
$(document).on('submit', '#form_id', function (e) {
//cache the form element for use in this function
var $this = $(this);
//prevent the default submission of the form
e.preventDefault();
//run an AJAX post request to your server-side script, $this.serialize() is the data from your form being added to the request
$.post($this.attr('action'), $this.serialize(), function (responseData) {
//in here you can analyze the output from your server-side script (responseData) and validate the user's login without leaving the page
});
});
이 양식 태그에 넣어 양식 자체 AJAX의 sumbission를 실행 jQuery를 모바일을 중지하려면를 :
<form data-ajax="false" action="...">
부정 투표에 대한 의견을 보내 주시면 감사하겠습니다. 나는 내가 뭘 잘못하고 있는지 알고 싶다. – Jasper
그래서 나는 ;-) 유일한 것은 아마도 '라이브'가 이제는 더 이상 사용되지 않으며 대신 '켜기'를 사용해야한다는 것입니다. 어쩌면 '켜기/끄기'를 반복하여 발생하는 이벤트를 방지 할 수 있습니다. http://stackoverflow.com/questions/9067259/ –