Ver Mensaje Individual
  #12 (permalink)  
Antiguo 01/10/2008, 08:39
suntus
 
Fecha de Ingreso: noviembre-2002
Mensajes: 746
Antigüedad: 21 años, 6 meses
Puntos: 6
Respuesta: un formulario y dos botones

Cita:
Iniciado por David el Grande Ver Mensaje
¿Por qué no colocas una condicional para ver si el action del form es "1.php" que no ejecute la validación del jQuery?
buena idea, este el javascript que tengo que anular


<script type="text/javascript">
if (value.action=='1.php'){ // tu idea


$().ready(function() {
// validate the comment form when it is submitted
$("#commentForm").validate();

// validate signup form on keyup and submit
$("#signupForm").validate({


});

//code to hide topic selection, disable for demo
var newsletter = $("#newsletter");
// newsletter topics are optional, hide at first
var inital = newsletter.is(":checked");
var topics = $("#newsletter_topics")[inital ? "removeClass" : "addClass"]("gray");
var topicInputs = topics.find("input").attr("disabled", !inital);
// show when newsletter is checked
newsletter.click(function() {
topics[this.checked ? "removeClass" : "addClass"]("gray");
topicInputs.attr("disabled", !this.checked);
});
});


} // cierro el if
</script>

te refieres a hacer algo asi?

la sintasis es correcta?

saludos.