This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Bear Bibeault wrote:Because spans don't have values.
Your title is way off -- jQuery is finding the element just fine. Then you are asking it to return something that does not exist. No surprise that you get undefined.
The reason I was testing for value is because I have tried to attach a click event to the span id. I could not get it to fire so I just trying to use something to see if the dom recognized the id or not.