title: How do I add my csrf token to my jQuery call?
body: <p>My server generates a csrfToken, which is inserted into the following element:</p>
  
  <pre><code>&lt;input type="hidden" name="_csrf" value="{{_csrfToken}}"&gt;
  </code></pre>
  
  <p>The {{_csrfToken}}, is used for templating, but at run time is replaced at the server with the actual token.</p>
  
  <pre><code>&lt;div class="formContainer"&gt;
      &lt;form class="form-horizontal signupform" role="form" action="/process?form=signupform" method="POST"&gt;
      &lt;input type="hidden" name="_csrf" value="{{_csrfToken}}"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="fieldName" class="col-sm-2 control-label"&gt;Name&lt;/label&gt; 
              &lt;div class="col-sm-4"&gt;
                  &lt;input type="text" class="form-control"
                  id="fieldName" name="name"&gt;
               &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="fieldEmail" class="col-sm-2 control-label"&gt;Email&lt;/label&gt;
              &lt;div class="col-sm-4"&gt;
                  &lt;input type="email" class="form-control" required id="fieldName" name="email"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;div class="col-sm-offset-2 col-sm-4"&gt;
                  &lt;button type="submit" class="btn btn-default"&gt;Register&lt;/button&gt; 
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  {{#section 'jquery'}}
  &lt;script&gt;
      $(document).ready(function(){ 
          $('.signupform').on('submit', function(evt){
              evt.preventDefault();
              var action = $(this).attr('action');
              var $container = $(this).closest('.formContainer'); $.ajax({
                  url: action,
                  type: 'POST',
                  success: function(data){
                      if(data.success){ $container.html('&lt;h2&gt;Thank you!&lt;/h2&gt;');
                  }else{
                      $container.html('There was a problem.');
                  } 
              },
                  error: function(){
                      $container.html('There was a problem.');
                  }
              });
          }); 
      });
  &lt;/script&gt;
  {{/section}}
  </code></pre>
  
  <p>How do I update my jQuery call to include the token ? Right now it is generating errors because the token is not included...</p>