Acabo de agregar lo que mencionaste y no funciono :(
Este es el codigo del formulario:
Código HTML:
Ver original<script type="text/javascript" charset="utf-8"> $(document).ready(function() {
$('#form1').validate({
rules: {
nom:{required:true},
mail:{required:true},
coment:{required:true}
},
submitHandler: function(form) {
$.ajax({
type: 'POST',
url: $(form).attr('action'),
data: $(form).serialize(),
success: function(data) {
chech = new Array()
check = data.split(":");
if(check[0]=="err"){
$('#result_err').html(check[1]);
$('#result_err').fadeIn();
}
if (check[0]=="ok"){
$('#result_err').hide();
$(form)[0].reset(); window.location.replace('/page/contact.php');
}
}
});
}
});
$('#result_err').hide();
});
<form action="/page/contact_procesos.php" method="post" name="form1" id="form1"> <p class="flotar" style="margin-top:20px;"> <label class="celda01" for="nom">Name
</label> <input class="celda02" id="nom" name="nom" type="text" /></p> <label class="celda01" for="mail">E-mail
</label> <input class="celda02" id="mail" name="mail" type="text" /></p> <label class="celda01" for="tel">Telefon
</label> <input class="celda02" id="tel" name="tel" type="text" /></p> <label class="celda01" for="fir">Firma
</label> <input class="celda02" id="fir" name="fir" type="text" /></p> <div id="result_err"></div><span style=" width:450px; margin-bottom:0;"><input id="send" name="send" style=" float:right; width:80px;margin-right:230px;" type="submit" value="Senden" /></span>