After upgrading to version 1.8.2 of jQuery, my validation plugin (latest version 1.10.0) started giving me exception:
Error: Syntax error, unrecognized expression: div class="warningZone" jquery.js (line 4679)
Here is my javascript:
function validateAll() {
$("#servicesForm").validate({
errorLabelContainer: "#servicesErrors",
wrapper: "div class=\"warningZone\"",
rules: {
mainTransport: { mMainTransportReq: true, mMainTransportNotReq: true },
stay: { mStayReq: true }
},
messages: {
mainTransport: {
mMainTransportReq: $("#servicesMainTransportReq").text(),
mMainTransportNotReq: $("#servicesMainTransportNotReq").text()
},
stay: { mStayReq: $("#servicesStayReq").text() }
}
});
$("#servicesForm").valid();
validatePeriods();
validateServices();
}
Why has my class warningZone
started throwing exceptions?