title: event.target.name.value - Uncaught TypeError: Cannot read property 'value' of undefined
body: <p>I have a form and some javascript logic I am using within a Meteor.js app.  When submitting the form. I am getting the error:</p>
  
  <p>Uncaught TypeError: Cannot read property 'value' of undefined</p>
  
  <p>It is complaining about this line:</p>
  
  <p>var email = event.target.email.value.toLowerCase();</p>
  
  <p>This is what the form looks like:</p>
  
  <pre><code>&lt;form class="request-form" id="request-form" method="post" action="#"&gt;
                      &lt;div class="form-group"&gt;
                        &lt;input type="text" name="name" id="name" value="" class="form-control" placeholder="Your Name" required /&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                        &lt;input type="text" name="email" id="email" value="" class="form-control" placeholder="Email Address" required /&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                        &lt;input type="text" name="subject" id="subject" value="" class="form-control" placeholder="Subject" required /&gt;
                      &lt;/div&gt;
                    &lt;/form&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="col-md-6 col-sm-12"&gt;
                  &lt;div class="block"&gt;
                    &lt;form&gt;
                      &lt;div class="form-group-2"&gt;
                        &lt;textarea id="message" name="message" class="form-control" value="" rows="3" placeholder="Your Message"&gt;&lt;/textarea&gt;
                      &lt;/div&gt;
                      &lt;button class="btn btn-default submit" type="submit"&gt;Send Message&lt;/button&gt;
                    &lt;/form&gt;
  </code></pre>
  
  <p>This is what the logic handler looks like:</p>
  
  <pre><code>    Template.contact.events({
          'submit form': function(event, template) {
              event.preventDefault();
              var $form = template.$('#request-form');
  
                  if ($form.valid()) {
  
                      var name = event.target.name.value;
  
  //COMPLAINING ABOUT THIS
  var email = event.target.email.value.toLowerCase();
  
                      var subject = event.target.subject.value;
                      var message = event.target.message.value;
  
                      UserList.insert({
                          name: name,
                          email: email,
                          subject: company,
                          message: message
                      });
  
                     // template.showForm.set( false );
                  }
  
              window.scroll(0,0);
          }
      });
  </code></pre>