1
Dear colleagues.
I have a button on the bootstrap from which I get the user ID this way:
<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 get other users' ID passed to the code below:
jQuery.ajax({
url : "alterar.php?v=N&k="+valor,
dataType : 'json',
async : false,
success : function(msg) {
}
});
Thank you!
Can you join the code with the event receiver? I think you need to use
$(this).attr('value');
instead of$('button#btn-salvar').val();
. And you should avoid double Ids.– Sergio
Perfect Sergio ... that’s it... it worked... thank you!
– user24136