A
A
Alexander Korolev2016-01-04 13:28:11
JavaScript
Alexander Korolev, 2016-01-04 13:28:11

Is there an autocomplete plugin for jQuery that allows you to add more data?

Good afternoon.

There are 4 fields on the form that belong to the same entity (on the backend), there is a task when entering data into any of these fields to check the existence of this data in the database, if it is, receive and fill in all the fields, if not, then be able to fill in the data with your hands .

I used to deal with select2, but I don’t understand how it can (can it be used at all) in this situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-01-04
@vintello

Your question is vague and it's not clear what you want.
if you need auto-completion (the user started typing Goo and the system filled in to Google because it is in the database) - this is one thing
if you want to fill in the field and the other three so that the system pulls it out of the database - this is another.
in any case, you need to dig towards AJAX requests
for example
or like this

N
no_one_safe, 2016-01-04
@no_one_safe

Autocomplete suits you Yes, and select2
, in my opinion, also knows how to work with ajax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question