可以anynone告訴我如何爲下面的驗證碼編寫自定義驗證器?我是jquery的新手,並沒有寫任何自定義驗證器。我需要使用這個自定義驗證器以及默認驗證器。我試過寫,但沒有奏效。請幫助Jquery - 需要幫助使用驗證碼
challengeField = $("input#recaptcha_challenge_field").val();
responseField = $("input#recaptcha_response_field").val();
var html = $.ajax({
type: "POST",
url: "recaptcharesponse.jsp",
data: "recaptcha_challenge_field=" + challengeField + "&recaptcha_response_field=" + responseField,
async: false
}).responseText;
//console.log(html);
$("#prtCnt").html("");
return true;
} else {
$("#prtCnt").html("<font color='#D31145'>Please try again.The characters you entered didn't match the word verification</font>");
Recaptcha.reload();
return false;
}
感謝
這篇文章的標題是非常誤導 – musefan