I have a textarea I would like to validate the same for empty spaces and on no input. Please find my jsfiddle here. How do I validate for empty spaces in the text area? what am I missing in my fiddle?
Thanks for pointing out the mistake. I have a small doubt. what are those character(s) doing in the replace() ? Could you please point me somewhere, where I could get some information on those characters(s)/replace function. And why there are two replace () methods?