What is the easiest way to check in Javascript whether the input text field is empty (contains nothing or white spaces only)?
You are looking for something like trim function, right?