开发者

IE 7,8 form not submitting after adding onClick event

开发者 https://www.devze.com 2023-04-12 03:36 出处:网络
I updated some code on my website now the form will not submit for IE7 and IE8. The code开发者_JAVA百科 is:

I updated some code on my website now the form will not submit for IE7 and IE8.

The code开发者_JAVA百科 is:

 $(".advancedFinder .goBtn").click(function () {

        $('#validDestination').hide();

        if ($('#DestinationId').val() == '') {
            $('#validDestination').show();

            return false;
        }

        $('.indicator').show();
        return true;

    });

The website with the problem can be viewed at http://gocruising.com.au/ when you click the GO Button under "Advanced Cruise Finder" it call the code ok, but never submits the form. All other browsers seem to work ok.

Javascript is on layout.js line 249


IE may need the type attribute on the button. Try:

<button class="goBtn" type="submit">Go</button>
0

精彩评论

暂无评论...
验证码 换一张
取 消