0
I need to make sure that when the user clicks on the options button, it keeps this id value and when you click on another "confirm" button it shows the id of the first button clicked.
I tried to do with localstorage, but it ends up showing all the id’s of all buttons.
<div class="row">
<div class="col-sm">
<button type="button" class="btn btn-primary" id="1">EXCEDEU O HORARIO</button>
</div>
<div class="col-sm">
<button type="button" class="btn btn-primary" id="2">CLIENTE REALIZOU</button>
</div>
<div class="col-sm">
<button type="button" class="btn btn-primary" id="3">ERRO DE ENTREGA</button>
</div>
</div>
<button type="button" class="btn btn-success but_pag_nao" id="confirm_ob" onClick="ok();">CONFIRMAR</button>
Why don’t you use the
input type="radio"
for that? Another possibility is the use of button group– William John Adam Trindade
It’s just that I need it the way I reported it :/
– Maria