@earmsby You seem to be missing code samples?
Aug 7, 2025
4
Level 6
input with datalist
In my laravel project, I have a form with an input that uses a datalist to select the value. Right now it works ok with a bit of javascript to add the id of the selected name to a hidden field. I'm doing something like this in the blade file:
And then I added a bit of javascript like this:
This works ok, but I wondered if there was another way to do this without the plain javascript. Maybe with LiveWire or some other Laravel feature I haven't discovered yet?
Please or to participate in this conversation.