I have some client-side validation against a text box, which only allows numbers up to two decimal places with no other input.
This script was a basis for entering n
gs: This is very close, but the line
f.value = f.value.replace(/[^\d\.]/g, "");
Doesn't actually appear to work. In fact I lose focus of the text box for some reason. Although perhaps it's my code ;)