2
How can I make a select
work also as a search field? Type, the client type as if he were typing in a input text
for example, and the options of select
are being filtered according to what he typed. I’m not sure if it would be a select
, but I need to do it somehow.
Currently it is like this:
<select id="id_mfuncao" name="id_mfuncao" class="form-control">
@foreach($mfuncoes as $mfuncao)
<option value="{{ $mfuncao->id }}">{{ $mfuncao->nome }}</option>
@endforeach
</select>
I do it right with a field
text
and aul
hidden and empty underneath. From there search the data viaajax
database and make aappend()
with theli
within with the values.– Diego Souza
You want a text field where what the person type is used as a filter in a search? in some specific field?
– Thomas Lima
so I have a select with about 500 options coming from the bank, I need the person can type there to n run the select if you know at least part of the name
– Raylan Soares
I think q n need to use ajax in this case @Zoom, because the data is already loaded. I just need to filter
– Raylan Soares
Good, but there’s no way you can type in a
select
, you have to masquerade and show just what you need. In my head you’d have to ride thecombobox
by ajax.– Diego Souza