2011-07-26 74 views

回答

1

使用AJAX後到後臺腳本和返回的數據推到收藏夾。

$('#form_id').submit(function(e)){ 
    //stop the form from submitting 
    e.preventDefault(); 

    //send the form data to the backend script 
    $.post('backend_script.php',$(this).serialize(),function(msg){ 
     //alert(msg) 
     //add content to lightbox here 
    }); 
});