Friends, I would like to know how to remotely retrieve the text of messages from jquery.validate in PHP.
$('#ajax_form_inclusao').validate({
rules : {
numeroContrato : {
required : true
},
dataInicial : {
required : true,
dateTimeBR : true
},
dataFinal : {
required : true
},
valorPF : {
required : true
},
qtdPFContratado : {
required : true
},
status : {
required : true
}
},
messages : {
numeroContrato : {
required : errorMessages.E2
},
dataInicial : {
required : 'Preencha o campo Data Inicial'
},
dataFinal : {
required : 'Preencha o campo Data Final'
},
valorPF : {
required : 'Preencha o campo ValorPF'
},
qtdPFContratado : {
required : 'Preencha o campo Quantidade de PF Contratado'
},
status : {
required : 'Selecione uma opção para o campo Status'
}
},
submitHandler : function(form) {
I would just like to put all the system messages in a single central file and retrieve the message text in the scripts.