Drop-down in text input

TextInput::make('assign_to') ->label('Assign to') ->placeholder('Enter Employee Name') ->required() ->reactive() ->extraAttributes([ 'class' => 'create-audit-form' ]) I want to add a feature such that whenever we click in textinput....first it should load a dropdown in that dropdown we have data coming from backend and when we type in textinput it should search the name in that list and when user selects the name it should be available in textinput. Just like the below image.
No description
Solution:
you can use dataList
Jump to solution
6 Replies
Solution
toeknee
toeknee2mo ago
you can use dataList
toeknee
toeknee2mo ago
Otherwise why not just use a select list?
Kumar kamal
Kumar kamalOP2mo ago
I want to implement the drop-down in text input, like when user clicks on the field...first drop down should appear.Can we achieve this ?
toeknee
toeknee2mo ago
Did you see my datalist comment?
Dennis Koch
Dennis Koch2mo ago
It doesn't help if you just repeat your question.
Kumar kamal
Kumar kamalOP2mo ago
Sorry. Implemented the datalist approach and working fine now. Thanks @toeknee @Dennis Koch

Did you find this page helpful?