Posted By

priyanhere on 11/14/06


Tagged

empty validation javscript


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

kyokutyo
shachi
phr4nk


Javascript Validation - isEmpty()


 / Published in: JavaScript
 

URL: http://www.freebookzone.com

  1. function isEmpty( inputStr ) { if ( null == inputStr || "" == inputStr ) { return true; } return false; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: kyokutyo on November 19, 2006
Posted By: badkungfu on February 27, 2007

function isEmpty( inputStr ) { return ( null == inputStr || "" == inputStr ) }

Posted By: badkungfu on February 27, 2007

function isEmpty( inputStr ) { return !(inputStr&&inputStr.length) }

You need to login to post a comment.