DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Field with UPPERCASE but without soecial characters (http://www.daniweb.com/forums/thread124321.html)

diririck May 15th, 2008 4:48 am
Field with UPPERCASE but without soecial characters
 
I hardly have any experience in programming....
a bit with javascript.

Now I am trying to make a form in which I want to force the input to be in a specific way.

No special characters and only uppercase.
I manage to get only 1 of those or uppercase or no special characters.... but not both.

What I have up until now is for Uppercase:
<input name="eigencode" type="text" size=30 maxlength="25"onChange="javascript:this.value=this.value.toUpperCase();" input name=EigenCode type="text" size=30 maxlength="25" value="Vul hier jouw code in.">

For "no" special characters:
//"checkExp(this,/^[\-A-Za-z\d]+$/)"

How do I combine these two ?

Thanks for anyone who wants to help.


All times are GMT -4. The time now is 4:54 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC