0
I have a modal window with a button, and I would like it to be disabled when pressing the button (a tag), and present "Wait..."
Look at 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 I’m doing wrong?
It worked!!!! Thank you all.
– Luis
@Luis made a change, see if you understand better.
– RFL