JSFiddle - React, Tailwind, and code Playground

HTML

1 <input class="chk_listado"  type="checkbox" name="chk_registro_1" id="chk_registro_1" />
     
    2 <input class="chk_listado"  type="checkbox" name="chk_registro_2" id="chk_registro_2" />
     
    3 <input class="chk_listado"  type="checkbox" name="chk_registro_3" id="chk_registro_3" />

<button>Click me!</button>

JavaScript

$('button').click(function() {
    var ids;
    
    ids = $('input[type=checkbox]:checked').map(function() {
        return $(this).attr('id');
    }).get();
    
    alert('IDS: ' + ids.join(', '));
});