H I O X INDIA
FREE Javascript
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Pagination
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Alphanumeric Characters Script


About
This javascript will help you to accept only strings and numbers and donot accept special characters.It checks alphanumeric characters.


Features
a) By using this javascript,the textbox accept only strings and numbers but donot accept special characters.It checks alphanumerics.
b) Just copy the code into your page and use it.


Preview

This textbox do not accept special characters like $,%,#,@ etc,but accept underscore

Enter the numbers and strings



Code
Javascript
<!--        Script by hscripts.com          -->
<!--        Copyright of HIOX INDIA         -->
<!-- More scripts @ http://www.hscripts.com -->

<script language=javascript>
var r={'special':/[\W]/g}
function valid(o,w)
{
  o.value = o.value.replace(r[w],'');
}
</script> 

<!-- Script by hscripts.com -->


HTML Code
<!-- Script by hscripts.com -->

<form id="myform">
Enter the strings and numbers.It donot accept special characters like $,%,#,@ etc,but accept underscore<br><br>
<center><input type="text" size="25" name="comments" onkeyup="valid(this,'special')" onblur="valid(this,'special')"><br><br></center>
<div align=center>&copy;<a href="http://www.hscripts.com" style=color: #3D366F;text-decoration:none;cursor:pointer;font-size:13px">hscripts.com</a></div>
</form>

<!-- Scripts by hscripts.com -->

Release Date - 07-04-2008

Get free version without ©copyright link for just 5



Usage

a) This script is used to accept only strings and numbers and do not accept special characters.
b) The function valid() is called for validation that is the typing character is a special character means remove that characters because this text box donot accept special characters.
c) Copy the code into your page and use it.





License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others