Why do not you recognize some of the form fields?

I practice form validation with JQUERY. However, the validation does not work for me because it does not recognize some of the entries. For example, it recognizes me when I insert different values ​​in the ID field but it does not recognize me when I enter it in the name. As much as I look, I can not fault, anyone can think of anything? (Please, a simple explanation that still costs me a little) Thanks in advance.

$ (document) .ready (
function () {
$ ("# send"). click (
function () {
var exprDni = / ^  d {8}[a-zA-Z]{1} $ /;
var exprEmail = / ^[a-zA-Z0-9._-]+ @[a-zA-Z0-9-]{2}[.][a-zA-Z]{2,4} $ /;

var dni = $ ("# dni"). val ();
var name = $ ("# name"). val ();
var company = $ ("# company"). val ();
var address = $ ("# address"). val ();
var mail = $ ("# mail"). val ();
var telf = $ ("# telf"). val ();
var date = $ ("#date"). val ();
var matr = $ ("# matr"). val ();
var mark = $ ("# mark"). val ();
var model = $ ("template"). val ();
var engine = $ ("# engine: selected");
var doors = $ ("input[type = 'radio']: checked ");
male trolley = $ ("entrance[type = 'checkbox']: checked ");
var fault = $ ("# failure"). val ();

if (dni == "" ||! exprDni.test (dni)) {
$ ("# infoDni"). fadeIn ();
returns false;
} else {
$ ("# infoDni"). fadeOut ();
if (name == "" | | name == not defined) {
$ ("# infoName"). fadeIn ();
false returns
} else {
$ ("# infoName"). fadeOut ();
if (company == "" || company == undefined) {
$ ("# infoCompany"). fadeIn ();
returns false;
} else {
$ ("# infoEmpresa"). fadeOut ();
if (address == "" || address == not defined) {
$ ("# infoDirec"). fadeIn ();
returns false;
} else {
$ ("# infoDirec"). fadeOut ();
if (mail == "" |||! exprEmail.test (mail) || mail == not defined) {
$ ("# infoMail"). fadeIn ();
returns false;
} else {
$ ("# infoMail"). fadeOut ();
if (telf == "" || telf == undefined) {
$ ("# infoTelf"). fadeIn ();
returns false;
} else {
$ ("# infoTelf"). fadeOut ();
if (date == "" || date == not defined) {
$ ("# infoDate"). fadeIn ();
returns false;
} else {
$ ("# infoDate"). fadeOut ();
if (matr == "" ||| matr == not defined) {
$ ("# infoMatr"). fadeIn ();
returns false;
} else {
$ ("# infoMatr"). fadeOut ();
if (mark == "" || mark == undefined) {
$ ("# infoMarca"). fadeIn ();
returns false;
} else {
$ ("# infoMarca"). fadeOut ();
if (model == "" || model == not defined) {
$ ("# infoMod"). fadeIn ();
returns false;
} else {
$ ("# infoMod"). fadeOut ();
if (motor.val () == "") {
$ ("# infoMotor"). fadeIn ();
returns false;
} else {
$ ("# infoMotor"). fadeIn ();
if (puertas.length == 0) {
$ ("# infoDoors"). fadeIn ();
returns false;
} else {
$ ("# infoDoors"). fadeOut ();
if (carroc.length == 0) {
$ ("# infoCarro"). fadeIn ();
returns false;
} else {
$ ("# infoCarro"). fadeOut ();
if (ventilation == "" || ventilation == not defined) {
$ ("# infoAveria"). fadeIn ();
returns false;
} else {
$ ("# infoAveria"). fadeOut ();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
)
}
)
.ocultos {
position: absolute;
display: none;
top margin: -1.5 μm;
left margin: 60px;
black background;
color: network;
border-radius: 4px;
}


  
    
    Exercise 3
    
    
    
  
  
    

Forms with validation

This form can be done with the own validation of the form attribute and its regular expressions, which performs the validation directly. However, this exercise has been omitted said attribute to be able to test the coding with javascript of the validation of the identifier, the registration and the telephone.

Customer data
The DNI must not be blank, but must have a valid DNI
Fill in the name field.
Fill the field of the company
Tell us your address
Tell us your email, but let it be valid, huh?
What's your phone number
Vehicle data
What date are we, what did not you tell me?
Tell me your license plate.
What is the brand of your car you forget?
If you do not tell me the model of your car, we're going bad
2
3
4
5
Cabrio
Chopped off
Sedan
Sedan
<type of entry = "