Charcter Validation

Discussion in 'JavaScript' started by danasegarane76, Jun 19, 2006.

  1. #1
    Hi all ,
    I am using the following javascript code to restrict the entry to alphanumeric.

    
    
    function issueentry()
    {
    		if((event.keyCode >= 97 && event.keyCode <= 122) || (event.keyCode >= 65 && event.keyCode <= 90) ||(event.keyCode >= 48 && event.keyCode <= 57) )
    			//alert(event.keycode);
    			;
    		else
    			event.keyCode = 0;
    	}
    
    
    
    
    Code (markup):

    And now I need the following charters also to be entered in the text box.For that what I have to modify in this. Or Can I use some different validation.?
     
    danasegarane76, Jun 19, 2006 IP