0
I have the following code:
if(oper == 1) {
$("#op" + iddoc).html("<input type='button' onClick='AddExcDocCPS(\"" + idcontrato + "\", \"" + iddoc + "\", 0)' value='Excluir' class='BT_Vermelho'>");
//alert("Documento Incluído com Sucesso!");
$(".MsgRetorno").html("<P style='margin:0; color:green;'>Documento Incluído com Sucesso!</P>");
$(".MsgRetorno").fadeOut(1000);
}
else
{
$("#op" + iddoc).html("<input type='button' onClick='AddExcDocCPS(\"" + idcontrato + "\", \"" + iddoc + "\", 1)' value='Incluir' class='BT_Verde'>");
//alert("Documento Excluído com Sucesso!");
$(".MsgRetorno").html("<P style='margin:0; color:red;'>Documento Excluído com Sucesso!</P>");
$(".MsgRetorno").fadeOut(1000);
}
It is a list with delete button that turns include and vice versa. It turns out that it only appears once... After fadeOut() it doesn’t appear again when I click on the buttons. I’m a beginner in Jquery.
Can anyone tell me why?
Cool. It worked.. Now if I click several buttons quickly not the time it disappear. It has to pause the fade in the middle to start another?
– Reculos Gerbi Neto
have, just a moment
– Sam
I updated the response with a code where
// cancela se algum fade estiver ocorrendo
.– Sam
Boaa... thank you very much!!!
– Reculos Gerbi Neto