Reputation: 1
I want to get the value of a span by knowing only the class name. In the document there is only one span with that class. I tried like this:
$('span.foo').text();
But it doesn't return anything. How can I do that?
Upvotes: 0
Views: 4966