Javascript 如何在Jquery中使用AlpineJS like.data()获取数据多选选项?
感谢您的时间,我对下面的代码有问题,我正在使用AlpineJs和BladeJavascript 如何在Jquery中使用AlpineJS like.data()获取数据多选选项?,javascript,jquery,laravel-blade,laravel-livewire,alpine.js,Javascript,Jquery,Laravel Blade,Laravel Livewire,Alpine.js,感谢您的时间,我对下面的代码有问题,我正在使用AlpineJs和Blade @if(!empty($optiondetail)) @foreach($optiondetail as $key_optdetail =>$val_optdetail) <div class="mt-2"> <label class="text-gray-700 text-sm mt-4 w-1/1" for=&
@if(!empty($optiondetail))
@foreach($optiondetail as $key_optdetail =>$val_optdetail)
<div class="mt-2">
<label class="text-gray-700 text-sm mt-4 w-1/1" for="count">{{$val_optdetail[0] -> groupname}}</label>
<div class="items-center mt-1 ml-2 w-full">
<div class="inline-block relative w-64">
<select wire:model="optionselected.{{$key_optdetail}}" class="block appearance-none w-full bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:shadow-outline">
<option>--choose--</option>
@foreach($val_optdetail as $optdet)
<option value="{{$optdet -> types_id}}">{{$optdet -> typename}}</option>
@endforeach
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
</div>
</div>
</div>
<div id="presult{{ $loop->iteration }} ">result this</div>
</div>
@endforeach
@endif
----------
第一类
第二类
第三类
结果a
结果b