If the html code would look like:
I could easily capture the value of the span class via a jquery extensionand js code: jQuery(this).find('span').attr('class').
However how should I define the js code in order to capture the value 'Winkel' ?
Only 1 small issue here, but related to a specific case:
In this case we have 2 lines: 1 with the term and 1 with the number of results.
With your code the output is: Winkel (277).
How can I limit it to just capture the value where class=term ?