[jQuery] Validate remote method not work
Hi,
I've try to use remote method and not work. I donwload the complete
Milk example and it don't work too.
This is the parameters
<script type="text/javascript">
$(document).ready(function(){
var validator = $("#form1").validate({
rules: {
codigo: {
required: true,
minlength: 3,
remote: "valcodigo.php"
}
},
errorPlacement: function(error, element) {
error.insertAfter(element);
},
messages: {
codigo: {
remote: jQuery.format("El código {0} ya existe")
}
},
errorClass: "errores"
})
})
</script>