I am creating a web page where I have an input text field in which I want to allow only alphabets,dots and spaces like "a b.c".
Space and dot allowed between consecutive words/characters but two consecutive spaces or dots are not allowed.
Allowed:- "abc def.xyz"
Not Allowed:- "abc def..xyz"
How can I do this using jQuery?