<input tabindex="4" type="text" class="form-control input-sm" name="pincode_id" value="'.$rpin.'" id="pincode_id" placeholder="Pincode">
<input tabindex="4" value="0" type="radio" placeholder="COD" onclick="token()" name="pay_type" id="pay_type_cod">COD
// Ajax调用
function token(){
$.ajax({
type: "POST",
url: "./ajax/token.php",
data: { "sub_sessionid": $("#sub_sessionid").val(),"pincode_id":$("#pincode_id").val()},
success: function(data) {
// alert("hitest");
if(data==1){
$("#msg").html("COD Not Applicable");
$("#pay_type_prepaid").prop("checked",true);
}
}
});
}
当我点击Radio btn COD时,我需要发送pin_code_id
给ajax呼叫令牌()...请任何人帮忙