Hello everyone my question is the following I have an input that can be 1 to N depends on the php forech and with that PHP I put the name and ID, in my JS what I want is to know their ID of each one bone if it brings me one, capture the input ID and so if it brings me N, at the moment only brings me the ID of the first and to know that this is the code I think to know the N id would be a for but I do not know how to build it THANK YOU.
var hola = $(".numeros").attr("id");
alert(hola);
This is my php code
<tr>
<td>Número de estudiantes del turno según SIAGIE</td>
<?php foreach ($niveles as $obj) { ?>
<td>
<div class="form-group">
<div class="col-md-12">
<input class="form-control numeros" type="text" id="3_<?php echo str_replace(' ', '_', $obj->nivel) . '_' . $obj->codigoModular; ?>" name="3_<?php echo str_replace(' ', '_', $obj->nivel) . '_' . $obj->codigoModular; ?>">
</div>
</div>
</td>
<?php } ?>