SyntaxFix
Write A Post
Hire A Developer
Questions
var x =" "; var patt = /^\s*$/g; isBlank = patt.test(x); alert(isBlank); // Is it blank or not?? x = x.replace(/\s*/g, ""); // Another way of replacing blanks with "" if (x===""){ alert("ya it is blank") }