I am trying to validate an input string (which can be copied & pasted in the textbox).
The input entered should contain one or more alphabetic characters, numbers and two more special characters as (& and Ñ), but no embedded spaces.
NB: Alphabetic characters must present, but numbers & those two special characters may or may not present to create a valid input.
I am using Jquery for client side validation.
-
Alternative Approach:
If anyone can help me how we can detect the occurrence of any special characters and spaces, except ‘&’ and ‘Ñ’ in any input string, then also my problem can be resolved.
Actually I am done with the validation with
Jquery alphanumericplugini.e
"$('#txtId').alphanumeric({ allow: "&Ñ" });".Explanation: This allows all
alpha numericcharacters & restricts all other characters (special characters got addressed). In the allow part I could place the allowable special characters.