I saw this question, but I didn\'t see a JavaScript specific example. Is there a simple string.Empty available in JavaScript, or is it just a case of checking f
string.Empty
var a;
trim out the false spaces in the value, then test for emptiness
false spaces
emptiness
if ((a)&&(a.trim()!='')) { // if variable a is not empty do this }