var costp;
var anzahl_der_personen = $('#anzahl_der_personen').val();
    if( +anzahl_der_personen == 1 ) {
        costp = 0;
    }elseif( $.trim('#anzahl_der_personen').val() === null ){
        costp = 0;
    }else {
         costp = (59 * $('#anzahl_der_personen').val()) - 59;
    }
for some reason it never comes to the elseif statement! I tried other ways is .lenght, .is(empty).. to see if the text field is empty but it always goes to the else statment! if the value is not 1 it goes to the else statment. What is the proper way to check if the value is empty or null, because if a user doesnt put anything in to the field I want the variable costp to be 0;
 
     
    