/ Published in: JavaScript
                    
                                        
strip non alphanumerical characters while typing
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<input type='text' onkeyup="this.value = this.value.replace(/[^a-z0-9]/gi,"");" />
Comments
 Subscribe to comments
                    Subscribe to comments
                
                