-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (30 loc) · 1.43 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html" />
<meta name="author" content="upadrian" />
<title>Preformat Money fields</title>
</head>
<body>
<form>
<label>Número 1: <input type="text" name="precio" id="precio" class="preformatUSD" /></label><br />
<label>Número 2: <input type="text" name="precio1" id="precio1" class="preformatUYU" value="123.5" /></label><br />
<label>Número 3: <input type="text" name="precio2" id="precio2" class="preformat100" value="10000.5" /></label><br />
<label>Número 4(!): <input type="text" name="precio3" class="preformatM2" value="10000.5" /></label><br />
<label>Número 5(!): <input type="text" id="precio4" class="preformatMTS" value="10000.5" /></label><br />
<label>Número 6(!): <input type="email" name="precio5" id="precio5" class="preformat100" value="10000.5" /></label><br />
</form>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.accounting.min.js"></script>
<script type="text/javascript" src="jquery.preformatField.js"></script>
<script>
$(document).ready(function(){
$("input.preformatUSD").preformat({symbol:'USD '});
$("input.preformatUYU").preformat({symbol:'$ '});
$("input.preformatM2").preformat({symbol:'m2',format:'%v%s'});
$("input.preformatMTS").preformat({symbol:'mts',format:'%v%s'});
$("input.preformat100").preformat({symbol:'%',format:'%v%s'});
})
</script>
</body>
</html>