forked from cheeaun/jquery.livefilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (49 loc) · 2.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<meta charset="utf-8">
<title>jQuery.liveFilter</title>
<link rel="stylesheet" href="http://cheeaun.github.com/cacss/ca.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.liveFilter.js"></script>
<script>
$(function(){
$('#livefilter-list').liveFilter('#livefilter-input', 'li', {
filterChildSelector: 'a'
});
});
</script>
<h1><a href="http://github.com/cheeaun/jquery.livefilter">jQuery.liveFilter</a></h1>
<h2>Demo</h2>
<div id="demo-container">
<fieldset>
<legend><label for="livefilter-input">Type anything.</label></legend>
<input id="livefilter-input" type="text" value="">
<ul id="livefilter-list">
<li><a href="#">cool</a></li>
<li><a href="#">nice</a></li>
<li><a href="#">interesting</a></li>
<li><a href="#">javascript</a></li>
<li><a href="#">css</a></li>
<li><a href="#">html</a></li>
<li><a href="#">script</a></li>
<li><a href="#">international</a></li>
</ul>
</fieldset>
</div>
<h2>Code</h2>
<h3>HTML:</h3>
<pre><code><input id="livefilter-input" type="text" value="">
<ul id="livefilter-list">
<li><a href="#">cool</a></li>
<li><a href="#">nice</a></li>
<li><a href="#">interesting</a></li>
<li><a href="#">javascript</a></li>
<li><a href="#">css</a></li>
<li><a href="#">html</a></li>
<li><a href="#">script</a></li>
<li><a href="#">international</a></li>
</ul></code></pre>
<h3>JavaScript:</h3>
<pre><code>$('#livefilter-list').liveFilter('#livefilter-input', 'li', {
filterChildSelector: 'a'
});</code></pre>
<a href="http://github.com/cheeaun/jquery.livefilter"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>