Two forms on same page each with a captcha but they are conflicting

こ雲淡風輕ζ 提交于 2019-12-13 04:37:57

问题


I have two forms on the same page...one for people in US and one for people Internationally. The user selects the form by selecting an icon. I have some javascript to enable the form according to the users choice. The issue is, that each form has a captcha and they are conflicting with one another.

Currently I have the css set to "display: none;" for the inactive form. Is there an easy way to avoid this conflict, either with css or javascript?

Here is a look at the current javascript:

$(function () {
$("[name=toggler]").click(function () {
    $("[name=toggler]").removeClass('active');
    $(this).addClass('active');
    $('.toHide').hide();
    $("#blk-" + $(this).val()).fadeIn(1000);
});

});

If you need more, please let me know. Thanks in advance for the help!

来源:https://stackoverflow.com/questions/19014308/two-forms-on-same-page-each-with-a-captcha-but-they-are-conflicting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!