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
no, but you could write one
function isNullOrWhitespace( str ) { // Does the string not contain at least 1 non-whitespace character? return !/\S/.test( str ); }