title: How can I find an element by class and get the value?
body: <p>I am trying to get the value of an input text field.</p>
  <p>the HTML is:</p>
  <pre><code>&lt;div id=&quot;start&quot;&gt;
      &lt;p&gt;
          &lt;input type=&quot;text&quot; class=&quot;myClass&quot; value=&quot;my value&quot; name=&quot;mytext&quot;/&gt;
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>The jquery is:</p>
  <pre><code>var myVar = $(&quot;#start&quot;).find('myClass').val();
  </code></pre>
  <p>The problem is that myVar is coming up undefined.  Does anyone know why?</p>