Is there a JavaScript equivalent to .NET's String.IsNullOrWhitespace
so that I can check if a textbox on the client-side has any visible text in it?
I'd rather do this on the client-side first than post back the textbox value and rely only on server-side validation, even though I will do that as well.
See Question&Answers more detail:os