jQuery Validator#remote with ASP.NET WebForms
问题 I'm trying to use the jQuery Validator plugin with WebForms. Here's my jQuery code: $("input[id$=FromZip]").rules('add', { required: true, postalCode: true, remote: { url: "shipping companies.aspx/ValidatePostalCode", type: "POST", contentType: "application/json; charset=utf-8", dataType: 'json', data: "{'postalCodeToValidate': '" + $("input[id$=FromZip]").val() + "'}", dataFilter: function(data) { return (JSON.parse(data)).d; } }, messages: { required: '"From" zip code is required.',