를 사용하는 경우 양식을 다음JQuery와 응답 아약스
$.ajax({
url: url_string,
//GET method is used
type: "POST",
//pass the data
data: data_string,
//Do not cache the page
cache: false,
//success
success: function (html) {
//if process.php returned 1/true (send mail success)
if (html != "") {
//hide the form
$('.form').fadeOut('slow');
// here the function is not working...
$(function() {
$("#tabmenu").tabs("#content", {
effect: 'ajax',
current: 'active',
initialIndex: 1
});
});
} else {
alert('Sorry, unexpected error. Please try again later.');
return false;
}
}
});
AJAX 처리기의 DOM 준비 함수에서 물건을 포장 할 필요가 없습니다. – ThiefMaster