-6
我有3個輸入,我需要檢查是否有空,然後運行ajax調用。多輸入驗證
可能有人幫助寫IF語句
$('input[name=newsave]').click(function(){
var neworgy = $('input[name=neworg]').val();
var newurly = $('input[name=newurl]').val();
var newtrackingy = $('input[name=newtracking]').val();
var dataString = 'email=<?php echo $userid;?>&neworg='+ neworgy +'&newurl='+ newurly +'&newtracking='+ newtrackingy;
$.ajax({
type: "POST",
url: "new-token.php",
data: dataString,
success: function() {
location.reload();
}
});
});