| 1 |
|
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<style> |
| 5 |
* {font-family: mono; font-size:0.95em} |
| 6 |
.eventNotifier{width: 100px; float: left; color:navy; border: dotted 1px navy; padding: 4px; background-color:white; margin:3px} |
| 7 |
.dirty{border: solid 1px #0ca2ff; color:white; background-color:#0ca2ff} |
| 8 |
|
| 9 |
</style> |
| 10 |
</head> |
| 11 |
<body> |
| 12 |
<h3>Test #01</h3> |
| 13 |
<table> |
| 14 |
<tbody> |
| 15 |
<tr> |
| 16 |
<td><input type='text' id='input_02' class='foo'></td> |
| 17 |
</tr> |
| 18 |
<tr> |
| 19 |
<td><input type='text' id='input_03' class='foo'></td> |
| 20 |
</tr> |
| 21 |
<tr> |
| 22 |
<td><input type='text' id='input_04' class='foo'></td> |
| 23 |
</tr> |
| 24 |
<tr> |
| 25 |
<td><input type='text' id='input_05' class='foo'></td> |
| 26 |
</tr> |
| 27 |
<tr> |
| 28 |
<td><input type='text' id='input_06' class='foo'></td> |
| 29 |
</tr> |
| 30 |
</tbody> |
| 31 |
</table> |
| 32 |
</body> |
| 33 |
<script src="jquery-1.4.2.js"></script> |
| 34 |
<script src="jquery.hotkeys.js"></script> |
| 35 |
<script> |
| 36 |
$(document).ready(function(){ |
| 37 |
$('input.foo').bind('keyup', '$', function(){ |
| 38 |
this.value = this.value.replace('$', '€'); |
| 39 |
}); |
| 40 |
}); |
| 41 |
</script> |
| 42 |
</html> |