title: Get the value of first input in form
body: <p>I have this HTML code:</p>
  
  <pre><code>&lt;form accept-charset="UTF-8"  id="SearchPatient"&gt;
     &lt;input autocomplete="off" class="form-control" placeholder="Patient suchen .." type="text"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this JavaScript function:</p>
  
  <pre><code>$("#SearchPatient").submit(function () {
      Patient.all(1, this.find('input').value)
  });
  </code></pre>
  
  <p>How you can guess i try o achieve that when the user submits the form the value of the input is passed to the function <code>Patient.all(int,value)</code></p>
  
  <p>Somehow i cant figure out how to get the first input in the form, i always get errors! For this code example i get the error:</p>
  
  <blockquote>
    <p>Object # has no method 'find'</p>
  </blockquote>
  
  <p>How can i do it correctly? </p>