1

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

1
  • If it's a form submission, I'd use submit() on the form, instead of click() on the button, otherwise IE won't submit when you hit "enter" instead of clicking. Don't know if that will have any bearing on your actual problem, though. Commented Oct 10, 2011 at 12:39

1 Answer 1

1

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

<button class="goBtn" type="submit">Go</button> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.