Dear colleagues.
I have a button in the bootstrap from which I get the user ID like this:
<button class="btn btn-xs btn-primary" id="btn-salvar" value="<?php echo $jm->IdUsuarios; ?>" title="Ativado">Salvar</button>
Only when I click save, it only takes the ID of the first user. See:
var valor = $('button#btn-salvar').val();
How would you have the other users' IDs passed to the code below:
jQuery.ajax({
url : "alterar.php?v=N&k="+valor,
dataType : 'json',
async : false,
success : function(msg) {
}
});
Thank you!