My JavaScript function is triggered with an onChange event, which works fine when there's only one.
<input class="form-control" type="text" onchange="opert(<?php echo $fetch["id_prod"] ?>,1)" id="name" value="<?php echo $fetch["name_prod"]; ?>">
However, when I try to include it in a loop (while statement), I encounter ID conflicts. How can I assign the same ID to all inputs within the loop?