jquery if val is null 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){}