Form Removes Numbers

[Total: 0    Average: 0/5]

Use only alphabetical characters.

Body Code:

<script>
function lookAt(_form)
{
   var REG_EXP = /[^a-z]/gi;    /* find any non character */
   _form.t2.value=_form.t1.value.replace(REG_EXP,""); /* Relace any non char*/
}

</script>
<form>
<input type=text name=t1 value="" onchange="lookAt(this.form)">
<input type=text name=t2 value="">
</form>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *