Skip to content

dca/jquery-msearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-msearch

A simple jQuery plugin for search element using css :not selector.

Code Climate

##Usage

$('input-selector').msearch('search-selector', 'field-name');

##Example

  <input class="search1" />
  <div id="main-list1">
    <div data-name="mary" class="search-item">Mary</div>
    <div data-name="jack" class="search-item">Jack</div>
    <div data-name="bob" class="search-item">Bob</div>
  </div>
  <script>
    $('input.search1').msearch('#main-list1 .search-item', 'data-name');
  </script>

Installation

The fastest way to get started is use bower, it's as easy as:

$ bower install --save jquery-msearch

Also, you can install it using npm, just type the following command

$ npm install jquery-msearch --save

About

A simple jQuery plugin search element by css selector.

Resources

Stars

Watchers

Forks

Packages

No packages published