-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·29 lines (27 loc) · 1.22 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Special Character Filter - test</title>
<style type="text/css">
.validationError {
background-color: peachpuff;
border-color: #f00;
}
</style>
</head>
<body>
<h1>Special Character Filter - test</h1>
<input type="text" name="myInput" id="myInput" size="25" class="noSpecialChars"><br />
<input type="text" name="myInput2" id="myInput2" size="25" class="noSpecialChars">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript" src="specialCharacterFilter.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#myInput').specialCharacterFilter({evt:'keypress'});
$('#myInput2').specialCharacterFilter({evt:'keypress',alert: false},function(err){console.log(err);});
});
</script>
</body>
</html>