How to Remove Spaces From a Text Field
This page shows you how to remove spaces from a text field. Any spaces entered by the user will be removed when they click anywhere outside the text field. Try it here:
Step 1
Add the following code to your head:
Step 2
Use the following code for your text field: