'); proceed = false; //set do not proceed flag } else { if(proceed == true) { tk_jQuery_instance(this).css('border-color',''); proceed = true; } } }); tk_jQuery_instance("#book_call_contact_form #city_id").each(function(){ if(!tk_jQuery_instance.trim(tk_jQuery_instance(this).val())){ //if this field is empty tk_jQuery_instance(this).css('border-color','red'); //change border color to red tk_jQuery_instance('#book_call_contact_form #city_id').after('