Hi
I am trying to prevent the user from inputting or pasting more than one word in a text box.
Which would be the best way to accomplish this. I was thinking of creating a keypress event forbidding spaces but not sure if this will cater for pasting text as well.
I am creating a form for firstname, middlename, and lastname and I only want one name in the firstname column so that users don't input the firstname and middlename in the firstname textbox
Thankyou in advance
Have a great day
I am trying to prevent the user from inputting or pasting more than one word in a text box.
Which would be the best way to accomplish this. I was thinking of creating a keypress event forbidding spaces but not sure if this will cater for pasting text as well.
I am creating a form for firstname, middlename, and lastname and I only want one name in the firstname column so that users don't input the firstname and middlename in the firstname textbox
Thankyou in advance
Have a great day