I have a modal window with a button, and I would like that, when I pressed the button (a tag), it would be disabled and I would like to "Wait ..."
See my code:
//#idDivModal4 -> modal
//.btn-enviar-lembrete -> tag a (botão)
$('#idDivModal4').on('click', '.btn-enviar-lembrete', function(){
event.preventDefault();
$(this).prop("disabled",true);
$(this).prop("value","Aguarde..");
});
Modal:
...
<a class="btn btn-danger btn-enviar-lembrete">Enviar lembrete</a>
However, it is not working. What am I doing wrong?