0

Got my self into a problem in IE 8 only. When i reference the following 2 together then the form submit event doesn't fire. When i remove either one then the event fires ok.

<script type="text/javascript" src="@Url.Script("jqueryMain/jquery.validate.js")"></script
<script type="text/javascript" src="@Url.Script("jqueryMain/jquery.validate.unobtrusive.min.js")"></script>

js call

<script type="text/javascript">


            $(document).ready(function () {
                $("#TransfersSearchForm").submit(function () {
                    alert(1);
                    return false;
                });
            });
        </script>

Do i need to download the latest?

learning...
  • 3,104
  • 10
  • 58
  • 96
  • Suggestion: Create a jsFiddle that reproduces the issue. – Eric J. Aug 28 '12 at 03:13
  • My jquery.validate.js is changed per the following question: http://stackoverflow.com/questions/10288753/mvc3-client-side-validation – learning... Aug 28 '12 at 03:23
  • I am trying to create this but how do i reference the 2 js files on jsfiddle? – learning... Aug 28 '12 at 03:30
  • As specified in my this post http://stackoverflow.com/questions/10288753/mvc3-client-side-validation, if i switch the commented code (selected answer) then the submit event fires just fine but validation doesn't happen. So the commented/uncommented code in these 2 posts fix one and create one issue. – learning... Aug 28 '12 at 05:17

1 Answers1

0

Downloaded the latest jquery.validation.js and IE8 problem got fixed.

Link to download: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

learning...
  • 3,104
  • 10
  • 58
  • 96