checking for any whitespaces
How can you check if an username or something like that contains no whitespaces? I have the code to replace al the whitespaces with any thing I want, but I prefer to notice the user they are using whitespaces and let them change it.
<input type="text" name="txtUsername" id="txtUsername" class="required" onblur="this.value = this.value.replace(/\s/gi, '_');" />
Thank you in advance!
Thijsje from the Netherlands!
|