Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var errorHandler = function(errorMap, errorList) {
- console.log("count: " + this.errorList.length);
- var text = "";
- if (this.errorList.length > 0) {
- text = "Please correct the following errors: ";
- for (var i = 0; i < this.errorList.length; i++) {
- text += "* " + this.errorList[i].message.errorCode + "<br>";
- }
- }
- $('#oopDialogErrorContainer').html(text);
- this.defaultShowErrors();
- }
- $("#myform").validate({
- errorLabelContainer: "#messageBox",
- wrapper: "li",
- submitHandler: function() { alert("Submitted!") }
- })
- $("#myform").validate({
- errorContainer: "#messageBox1, #messageBox2",
- errorLabelContainer: "#messageBox1 ul",
- wrapper: "li", debug:true,
- submitHandler: function() { alert("Submitted!") }
- })
Add Comment
Please, Sign In to add comment