forked from KevinSheedy/jquery.alphanum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (34 loc) · 1.03 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>The W3C Markup Validation Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="jquery.alphanum.js"></script>
<script type="text/javascript">
</script>
<link rel="stylesheet" type="text/css" href="node_modules/browser-reset/reset.css"></link>
<style type="text/css">
</style>
</head>
<body>
<h1>alphanum()</h1>
<input id="firstName"></input>
<h1>numeric()</h1>
<input id="accountBalance"></input>
<h1>alphanum()</h1>
<textarea id="aboutMe"></textarea>
<a href="test/">QUnit Tests</a>
<script type="text/javascript">
//$.fn.alphanum.setNumericSeparators(".", ",");
$('#firstName') .alphanum({
allow: ''
});
$('#accountBalance').numeric({
maxPreDecimalPlaces : 10,
maxDecimalPlaces : 2
});
$('#aboutMe').alphanum();
</script>
</body>
</html>