Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/01/2009, 10:14
ikarush
 
Fecha de Ingreso: marzo-2005
Ubicación: Madrid
Mensajes: 233
Antigüedad: 19 años, 1 mes
Puntos: 5
Duda sobre jQuery validation plug-in 1.5

Hola a todos.
Tengo jquery y el pluggin incluidos en un documento.

Código:
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
Tengo tambien el siguiente código
Código:
$(document).ready(function() {


	 $("#commentForm").validate({
		rules: {
			comment_email: {
				required: true,
						}
			comment_text: {
				required: true,
						}
					}
	 });
})
;

Finalmente aqui tengo mi formulario
Código:
<form action="http://local.desarrolla2.com/frontend_dev.php/category7_title/1las-nuevas-envidia-gforce-son-la-ostialas-nuevas-envidia-gforce-son-la-ostialas-nuevas-envidia-gforce-son-la-ostia/1/" method="post" name="commentForm" id="commentForm" >
                          <table>
                            <tr>
  <th><label for="comment_email">Introduce tu email</label></th>
  <td><input type="text" name="comment[email]" value="n-a" id="comment_email" /></td>
</tr>
<tr>
  <th><label for="comment_text">Comentario</label></th>

  <td><textarea rows="4" cols="30" name="comment[text]" id="comment_text"></textarea><input type="hidden" name="comment[id]" id="comment_id" /></td>
</tr>
                            <tr>
                              <td colspan="2">
                                <input type="submit" value="Enviar Comentario" />
                              </td>
                            </tr>
                          </table>
                        </form>
Al hacer click sobre el formulario no tira ningún error, y a pesar de que los campos email y text estén vacios el formulario se envia.
¿Alguna sugerencia? No veo cual puede ser mi error.

Un saludo