not equal to null condition in jquery 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){}