How can I determine if an input string only contains spaces, using javascript?
if (!input.match(/^\s*$/)) { //your turn... }