jQuery validate : multiple form, single validation
- by I-M-JM
Hi all
I have 2 forms, namely (ids mentioned) 'add_product' and 'edit_product'
Now I am using jQuery validation plug-in, both the forms have same validation (similar to mentioned in following example)
jQuery("#add_product").validate({
rules: {
name:"required",
price:"number"
},
messages: {
name:"Please enter…