<?foreach ($region_get_all->regions as $key):?>
//
<?endforeach;?>
suppose I get multiple numbers via foreach
what I want to do is that when the user selects the "edit" data
, I will show the div
that there will be data
// foreach
<button
data-id="<id>"
type="button" class="openRightLayout"></button>
// js
$(".openRightLayout").click(function(e) {
e.preventDefault();
var id = e.currentTarget.dataset.id;
$("-sharpservice_range").val(id);
});
// divinput:service_range
<div>
<input id="service_range" name="service_range" type="text" value="">
</div>
he can"t do it like this. He didn"t really put the value into input.
.