Beginnersquestion: How to select value between span tags
Hi,
Can anybody tell me how to select a value between span-tags.
The current HTML code looks like
- <div id="myid">
- <span>somevalue</span>
- </div>
And jQuery looks like:
- $('.myid').dblclick(function() {
-
- var title = $(this).val('span');
- });
But that doesn't work :(
I just want the 'var title' use somewhere in the jquery function.
Thx!