Expensive, how do I reload the page so it does not flicker? Can I leave a GIF on the screen while the page is being reloaded?
$('#objetivos-form').live('submit',function(){
var form = $(this);
// validando
if (
form.find('input[name="objetivo[]"]:checked').val() == '' ||
form.find('input[name="objetivo[]"]:checked').val() == null
){
message.erro('Escolha um objetivo!', '#result');
} else {
$.post( form.attr('action'), form.serialize(), function(result){
$(".descubra-objetivo").fadeOut();
// location.reload();
$(".descubra-alterar").fadeIn();
});
}
return false;
});