我有一個PHP頁面,我會發送一個jQuery Ajax請求到另一個頁面發送電子郵件。這個新頁面接受一個參數,然後執行查詢ECC ...發送參數與jQuery的AJAX
<div id="customer" name="customer" style="visibility: hidden;"><?php echo $customer; ?></div>
<?php echo '<input id="pulsante" type="image" src="includes/templates/theme485/buttons/english/button_confirm_order.gif" onclick="inoltra();"> '; ?>
這是腳本
function inoltra(){
var jqxhr = $.ajax({
type: "POST",
url: "../gestione_di_canio/services.php",
datatype: "json",
data: ??????????????
async:true,
success:function() {
try{
alert("ok");
}catch (e){
alert("correggi");
}
}
});
}
我怎麼能傳遞給DIV的「客戶」數據的價值?