Jean escribió:
I dont know why but with validate code my js dont run anything =/
even though a simple alert
I´m trying with IE6, FF works fine!
Is somebody with the same problem??
$(document).ready(
function()
{
$("#validando").hide();
$("#Responder").bind('click', function(){
var old_title = document.title;
document.title = "Validando...";
mostraMSG("validando");
$("#envia_quest").validate({
errorClass: "error_valida",
errorElement: "em",
errorPlacement: function(error, element) {
error.appendTo(
element.parents("ul").find("li.aki_erro") );
}, <----- THIS IS THE ERROR
I marked above the error. You have a list of object element with a final
comma. This simple error
was my nightmare one month ago :-P. Be careful.
});//fim validate
escondeMSG("validando");
document.title = old_title;
});
escondeMSG("carregando");
});
function mostraMSG(container) {
$("#total").hide();
$("#"+container).show();
}
function escondeMSG(container) {
$("#"+container).hide();
$("#total").show();
}
--
Best Regards,
José Francisco Rives Lirola <sevir1ATgmail.com>
SeViR CW · Computer Design
http://www.sevir.org
Murcia - Spain