I have call data from mysql and set checkbox id dynamically with php
<?php
if (isset($sls_data)) {
foreach ($sls_data as $data) {
?>
<div class="checkbox col-md-3 col-sm-2 col-xs-3">
<label class="control-label">
<input type="checkbox" name="<?= $data->SLSGROUP ?>" id="<?=
$data->SLSGROUP ?>" value="true">
<?= $data->SLSGROUP ?>
</label>
</div>
<?php
}
}
?>
How can I call checkbox id from ajax function.
Aucun commentaire:
Enregistrer un commentaire