0
不工作數據的回調函數我已經實現隱形驗證碼的網站寄存器form.When我點擊提交按鈕的驗證碼便會出現,驗證後它不會調用回調函數。 這是腳本。看不見驗證碼
腳本
{literal}
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script>
function onSuccess = function(token) {
document.getElementById("registerform").submit();
}
</script>
{/literal}
HTML
<form action="" method="post" name="registerform" id="registerform" onsubmit="javascript: return checkRegFormFields(this);">
<td colspan="2" class="button-row">
<button class="btn main-button btn-danger no-bdrs btn-block btn-lg g-recaptcha" data-sitekey="mysitekey" data-callback="onSuccess" title="Submit"> Submit </button>
</td>