I
I
InterestingPerson2015-11-23 12:23:29
meteor
InterestingPerson, 2015-11-23 12:23:29

How to do a real time search?

There is a structure like this:

<div class="people-table-header clearfix">
        <div class="input-group people-filter">
            <span class="input-group-addon search">
            </span>
            <input class="form-control people-filter-input" placeholder="Click to search by name and etc" type="text">
        </div>
    </div>
    <div class="people-table-inner">
    <div>
    ....
    </div>
        <table>
            {{#each persons}}
                <tr>
                    ...
                </tr>
            {{/each}}
        </table>
    </div>

How to make it so that when entering characters in the search field, in real time only those people in the table are displayed in the table, in the name whose last names contain these characters, for example, there are 3 people: Ivanov, Petrov, Sidorov, when you enter "ro" in the search "Petrov and Sidorov would be taken out. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2015-11-23
@InterestingPerson

Here is a great solution, used it in one project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question