Currently I'm trying to parse two values though jQuerys validate plugin to check against an SQL database. I can see that DateReceived is being parsed correctly, but CentreID is always coming up as null.
Here's my current code:
var centreID = $( '#CentreSelect' ).val();
$("#submit-form").validate({
rules: {
DateReceived:{
required: true,
remote:{
url: "url.php?CentreID=" + centreID,
type: "GET"
}
},
},
messages: {
DateReceived: {
remote: "Error - Centre already entered on that date"
}
}
});
});
An suggestions would be much appreciated.