2
I would like to change the text of the button after confirmation reading, however as I have several equal elements in the DOM, how do I change only the text of the button in question.
<td class="btnDoc"><button id="dados" data-confirm="" data-iddocumento="189738" data-descricao="DEI-DAF020.001.000 - DEI - TI SUPORTE.pdf" type="button" class="btn btn-warning btn-xs 189738">Confirma Leitura</button></td>
<td class="btnDoc"><button id="dados" data-confirm="" data-iddocumento="189738" data-descricao="testte" type="button" class="btn btn-warning btn-xs 189738">Confirma Leitura</button></td>
<td class="btnDoc"><button id="dados" data-confirm="" data-iddocumento="189738" data-descricao="teste1" type="button" class="btn btn-warning btn-xs 189738">Confirma Leitura</button></td>
I thought of this form of implementation, however I am developing for in the Fluig ERP of Totvs ,that its specification. Not to mention that click event would capture the btn click of the modal, because it has btn that opens modal that other btn confirmation.In case I wanted to change text of the 1st button.
– Rafael Luz
is just an example, you can add a specific class for the modal btns, so the click will work without problem!
– Lodi