function add_ajaxmessage(){
var dh = document.getElementById("tel");
//表單驗證
if($("#tel").val()=="" || !mobile.test($("#tel").val())){
alert("請輸入正確的手機號碼!");
return;
}
//參數設置
var dataString =
'tel='+dh.value+ //表單的name和id值必須一致,注意:這一行最前面不能帶有'&'符號
'&action=post'+
'&diyid=1&do=2&dede_fields=tel,text&dede_fieldshash=7ee793de444a837ff7faed06ee944f22';
$.ajax({
type: "POST",
url: "/plus/diy.php",//提交到后台文件
data: dataString,//傳值
success: function(data) {
alert("手機提交成功,稍后客服人員將與您聯系!");
}
});
