forked from akzhan/jquery-keyfilter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" dir="ltr"> | ||
<head> | ||
<title>jQuery KeyFilter Demo</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<meta name="keywords" content="jQuery, Keys, Validation" /> | ||
<link rel="stylesheet" type="text/css" href="http://www.blueprintcss.org/blueprint/screen.css" media="screen, projection" /> | ||
<link rel="stylesheet" type="text/css" href="http://www.blueprintcss.org/blueprint/print.css" media="print" /> | ||
<!--[if IE]><link rel="stylesheet" href="http://www.blueprintcss.org/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> | ||
<style type="text/css"> | ||
label { display: block; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>jquery.keyfilter</h1> | ||
<h2>Demo page</h2> | ||
<noscript> | ||
<div class="error">Warning! This demo page correctly works with enabled JavaScript only.</div> | ||
</noscript> | ||
<fieldset> | ||
<legend>Controls that filtered by its class</legend> | ||
<label><input type="text" class="mask-pint" /> - mask-pint</label> | ||
<label><input type="text" class="mask-int" /> - mask-int</label> | ||
<label><input type="text" class="mask-num" /> - mask-num</label> | ||
<label><input type="text" class="mask-hex" /> - mask-hex</label> | ||
<label><input type="text" class="mask-email" /> - mask-email</label> | ||
<label><input type="text" class="mask-alpha" /> - mask-alpha</label> | ||
<label><input type="text" class="mask-alphanum" /> - mask-alphanum</label> | ||
</fieldset> | ||
<fieldset> | ||
<legend>Controls that filtered by JavaScript code</legend> | ||
<label><input type="text" id="by-re" /> - By regular expression</label> | ||
<label><input type="text" id="by-f" /> - By function</label> | ||
</fieldset> | ||
<div class="copyright"> | ||
This demo uses <a href="code.google.com/p/jquery-keyfilter/">jquery.keyfilter</a>, <a href="http://jquery.com/">jQuery</a> and <a href="http://www.blueprintcss.org/">Blueprint</a>. | ||
</div> | ||
</div> | ||
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"></script> | ||
<script type="text/javascript" src="http://jquery-keyfilter.googlecode.com/files/jquery.keyfilter-1.3.js"></script> | ||
<script type="text/javascript"> | ||
(function($) | ||
{ | ||
$('#by-re').keyfilter(/[ABC]/i); | ||
$('#by-f').keyfilter(function(c) { return c != 'A'; }); | ||
})(jQuery); | ||
</script> | ||
</body> | ||
</html> |