forked from jeresig/jquery.hotkeys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-static-03.html
42 lines (40 loc) · 1.37 KB
/
test-static-03.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
<html>
<head>
<style>
* {font-family: mono; font-size:0.95em}
.eventNotifier{width: 100px; float: left; color:navy; border: dotted 1px navy; padding: 4px; background-color:white; margin:3px}
.dirty{border: solid 1px #0ca2ff; color:white; background-color:#0ca2ff}
</style>
</head>
<body>
<h3>Test #01</h3>
<table>
<tbody>
<tr>
<td><input type='text' id='input_02' class='foo'></td>
</tr>
<tr>
<td><input type='text' id='input_03' class='foo'></td>
</tr>
<tr>
<td><input type='text' id='input_04' class='foo'></td>
</tr>
<tr>
<td><input type='text' id='input_05' class='foo'></td>
</tr>
<tr>
<td><input type='text' id='input_06' class='foo'></td>
</tr>
</tbody>
</table>
</body>
<script src="jquery-1.4.2.js"></script>
<script src="jquery.hotkeys.js"></script>
<script>
$(document).ready(function(){
$('input.foo').bind('keyup', '$', function(){
this.value = this.value.replace('$', '€');
});
});
</script>
</html>