jquery-1.10

jQuery Validation plugin version 1.11.1 is not working in Explorer 8

折月煮酒 提交于 2019-12-11 19:14:28
问题 I'm using jQuery Validation Plugin - v1.11.1 and jquery 1.10.2 but below code doesn't work in IE 8. It works fine in IE9 and above and also in other browsers like Chrome. <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script src="Scripts/jquery_validate.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btn').click(function() { $("#form1").validate({ rules: { <%= txt.UniqueID %>: "required" }, messages: { <%= txt.UniqueID %>: "Please

Syntax error with parseJSON during unobtrusive validation

孤街浪徒 提交于 2019-11-27 20:37:35
My MVC app is generating the following HTML which causes a Javascript syntax error upon submission (I'm not typing anything into the two text boxes). Here's the generated HTML and the submit handler: <form action="/UrIntake/Save" id="UrIntakeForm" method="post"> <input data-val="true" data-val-length="The field LastName must be a string with a maximum length of 50." data-val-length-max="50" data-val-required="The LastName field is required." id="FormSubmitter_LastName" name="FormSubmitter.LastName" type="text" value="" /> <input data-val="true" data-val-length="The field FirstName must be a