jquery is null or empty string code example
Example: jquery if null or empty
if (jQuery('#something').val().length != ''){}
or
if (jQuery('#something').val().length != 0){}
if (jQuery('#something').val().length != ''){}
or
if (jQuery('#something').val().length != 0){}