S
S
SHAKIRA2014-06-14 16:51:05
JavaScript
SHAKIRA, 2014-06-14 16:51:05

How to implement Json jQuery search?

Hello! There is a base based on json, and a page with a search form and a block for the search result. How can I make sure that when typing some text in the search field in the block, the appropriate results available in the database are shown?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
andreyqin, 2014-06-14
@andreyqin

jQuery UI Autocomplete

L
Lisonok, 2014-06-14
@Lisonok

If there is already a ready-made json, then just when changing the input field, select the necessary ones with the script. If json is generated by the server, then send a request to the server when it changes

Y
yttrium, 2014-06-14
@yttrium

iterate over json elements and compare either by plain text search or RegExp, fill in the block for the result with found elements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question