The present invention discloses a system for providing real-time validation of text input fields in a Web page during text entry. Such a system can include a validation-enhanced text input element and an input text validator. The validation-enhanced text input element can be configured to contain a validation expression for a text field in a Web page. The validation-enhanced text input element can be contained in the source code document that corresponds to the Web page. The input text validator can be configured to validate a character entered into the text field against the validation expression in real-time. Characters determined as invalid can be visually indicated by the input text validator in the text field.
<script>
regexs = {};
regexs['zip']=/\d{5}/;
</script>
<input
style="background-color:white;"
type="text"
id="zip"
onchange="this.style.backgroundColor = (this.value.match(regexs[this.id])) ? 'white' : 'red';"
>
Go fuck yourself. USPA 0090132950: Or IBM, go fuck yourself |