How to check null/empty string in javascript Blog Logo on 04 Nov 2013 read if(/[^\s]+/.test(title)){ //Is not empty }else{ //Is empty } Written by Blog Logo Daniel Gomez Rico Published 04 Nov 2013 Supported by Please enable JavaScript to view the comments powered by Disqus.