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
You must write your own:
function isNullOrWhitespace(strToCheck) { var whitespaceChars = "\s"; return (strToCheck === null || whitespaceChars.indexOf(strToCheck) != -1); }