Daveo
Daveo

Reputation: 19882

IE 7,8 form not submitting after adding onClick event

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

The code 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

Upvotes: 1

Views: 519

Answers (1)

jk.
jk.

Reputation: 14435

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

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

Upvotes: 1

Related Questions