title: how to get the value of a span tag?
body: <p>I want to get the contents of a span tag but what I have isn't working. An alert shows an empty dialog box. I've tried the following but nothing works.</p>
  
  <pre><code>var test=$('#test').val()
  var test=$('span#test').val()
  var test=$('td span#test').val()
  </code></pre>
  
  <p>Can someone tell me what I'm doing wrong?</p>