<div class="wrapper-dropdown" id="primary_destination">
<span>Primary Destination</span>
<ul class="dropdown" >
@foreach(DB::table('formcountries')->get() as $r)
<li data-v-6e3bf6e8="{{ $r->code }}" data-title="{{ $r->name }}" value="{{ $r->name }}" class="optionselect" id="selectboxes" onclick="optionselect(this.value);"><span class="selectspan">{{ $r->name }}</span></li>
@endforeach
</ul>
</div>
<script type="text/javascript">
function optionselect(value) {
var params = $('#selectboxes').val();
$('#testfield2').val(params);
}
</script>
〈输入数据-v-5170 d561 ="”类型=“文本”占位符=“目的地”
1条答案
按热度按时间arknldoa1#