Support the ongoing development of Laravel.io →
Alpine.js Laravel
Last updated 3 months ago.
0

Hey!

Can you show us the output of your div and the generated select tag in the browser?

This code looks like it should be working fine.

<div> {!! Form::label('tags', 'tags') !!} {!! Form::select('tags[]', $tags,null, ['class'=>'form-input rounded-sm block w-full mt-1','multiple', 'x-data'=>"{}" 'x-init'=>"function () { choices($el) }" ]) !!} </div>

Do you have any other code in there?

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.