Question and answer is powered by AnsPress.io
If the user enters only blank space from starting content then content will be verified. If first later not a string/alpha then it will display an error message.
Not valid Data:
var myText=" lorem ipsum";
Valid Data:
var myText="lorem ipsum";
Apply it
if(myText == "" || !myText.match(/^[a-zA-Z]/)){ // Not valid }else{ // Valid }