How to use addmethod in jquery.validate. Example
$("#formname").validate({
rules: {
textbox: {
required: true,
regexp: /['"]/
},
methods: {
required: "Should not be blank",
regexp: "Single quotes and double quotes not allowed"
}
}
});
I need to check this quotes in textbox with addmethod. How can i do this. Explain me by implementing your answer with my sample code.