【发布时间】:2015-03-12 13:00:58
【问题描述】:
我正在尝试在带有颜色框的 ajax 窗口中使用新的 google recaptcha。但是在 IE 9、10、11 中存在一个问题:我无法在文本字段中输入任何内容。没有彩盒就可以了。 这是我的代码
<script type="text/javascript" defer="defer" src="//www.google.com/recaptcha/api.js?ver=1"></script>
<div id="form">
<div class="g-recaptcha" id="g-recaptcha" data-sitekey="<?= RECAPTCHA_KEY ?>"></div>
<button name="" id="sendNotice" type="submit">Send</button>
</div>
<script>
function showNoticePopup(productId, shopProductId) {
$.colorbox({
href: '#form',
onComplete: function() {
grecaptcha.render('g-recaptcha', {
'sitekey' : '<?= RECAPTCHA_KEY ?>'
});
}
});
}
showNoticePopup();
</script>
有人知道解决办法吗?
【问题讨论】:
标签: javascript jquery colorbox recaptcha