How to allow text and number but not allow special char in this input ?
in my code , it's will allow only number, i want to apply to allow text too,
How can i do that?
and can i user this function base on javascript ?
<form action=# name=f1 id=f1 onsubmit="return false">
<input type=text name=t1 id=t1 value="" size=25 style="width:300px;"
onkeypress="if(this.value.match(/\D/)) this.value=this.value.replace(/\D/g,'')"
onkeyup ="if(this.value.match(/\D/)) this.value=this.value.replace(/\D/g,'')"
>
</form>