title: How do you Query Select find a span in JQuery?
body: <p>I have this span and I'm trying to use JQuery to get the value within the span using find query selector. </p>
  
  <pre><code>&lt;div class='form'&gt;
  &lt;span name='spanValue'&gt;1&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>my jquery </p>
  
  <pre><code>var spanValue = $('.form').find('span[name="spanValue"]').val();
  </code></pre>
  
  <p>for some reason this does not get the value when running and I'm not sure why. Even doing this doesn't work</p>
  
  <pre><code>var spanValue = $('.form').find('[name="spanValue"]').val();
  </code></pre>