How to disable an input and enable through button click if the ID is something like this id="qty_<?php echo $x; ?>"
not a normal id="qty"
<input type="number" name="qty[]" min="0" id="qty_<?php echo $x; ?>" class="form-control" required onclick="getTotal(<?php echo $x; ?>)" onkeyup="getTotal(<?php echo $x; ?>)" value="<?php echo $val['qty'] ?>" autocomplete="off">
javascript - how to use this kind of id? id="qty_<?php echo $x; ?>
function enablebutton(){
$('*#my_field').prop( "disabled", false );
}
the normal id like id="qty"
is working but i need the solution on how to use this kind of id id="qty_<?php echo $x; ?>"
when enable/disable an input