I want to send an extra parameter to the validation server side script. I have this code:
$("#edit_info").validate({
debug: false,
rules: {
name: {
required: true,
//remote: "validate.php",
remote: { url:"validate.php", async:false },
data: {'cat_id':'34'}
/*data: {
cat_id: function () { return '34'; }
}*/
},
But only the name gets sent. Any idea why? Thanks!
cat_ida function instead? Like what you have commented out basically.