Through javascript how to organize search

The question was asked: 6 years 11 months ago   views: 36
0

Hello! Write the script for the sample database. The sample included numerical values and they need to tick off and pass to a script because a lot of them need to make the bottom of the search that he was looking for and illuminates the values! Here's an example:

Asked: 05-12-2012 в 08:26:09
no more offers? - 06-12-2012 в 07:58:52

Answers   2

0

If jQuery is connected, remerno so:

$('input').keyup(function () { var text_to_search = $(this).val(); $('select option').each(function () { if ($(this).text().indexOf(text_to_search) == -1) { $(this).hide(); //$(this).css('display', 'none'); is also possible } else { $(this).show(); } }); });
Answered: 06-12-2012 в 09:42:14
At least approximately! In that thread I engage and work with this. (( Please! - 06-12-2012 в 09:47:19
0

Algorithm: Sorted paragraphs, those that don't fit the entered mask, changing their css display property to none.

The easiest option)

Answered: 05-12-2012 в 09:25:18
and about couldn't write! Css little use! - 05-12-2012 в 09:43:18