1
如何在不刷新的情況下創建jQuery + ajax表單? 這是我的控制器和意見:Kohana - 如何創建沒有刷新的窗體?
在 「清除」 PHP創建這樣的事情:在add.php文件
$(document).ready(function(){
$("form#submit").submit(function() {
var note = $('#note').attr('value');
$.ajax({
type: "POST",
url: "add.php",
data: "note="+ note,
success: function(){
$('form#submit').hide(function(){$('div.success').fadeIn();});
}
});
return false;
});
});
是INSERT到數據庫。