Git Product home page Git Product logo

jquery-simple-search's Introduction

jQuery-Simple-Search

Allows you to, easily, implement a search system in DOM.

Usage

Create a input (which will be used to search items) with the class .simple-search and data-loop with the list of elements to search.

<html>
<head></head>
<body>
	<input type="text" class="simple-search" data-loop="table tr" placeholder="Search..."> 
	<button>Search</button>
	<table>
		<tr><td>Item 1</td></tr>
		<tr><td>Item 2</td></tr>
		<tr><td>Item 3</td></tr>
		<tr><td>Item 4</td></tr>
		<tr><td>Item 5</td></tr>
		<tr><td>Item 6</td></tr>
		<tr><td>Item 7</td></tr>
	</table>
</body>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="jQuery.simple.search.js"></script>
</html>

It'll search in all "table tr" and fadein thoose who have the value wrote on input.

Example

![Example] (http://i64.tinypic.com/2r23zfs.gif)

jquery-simple-search's People

Contributors

samuelfaj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.