You shold change your code to:
$('#capture').click(function(e) {
e.preventDefault();
// var test = $(".gifttitle", this).text();
alert("TEXT " + test);
});
The :selected
pseudoclass is not applied to span
elements.
The $(". gifttitle ", this)
means select the element with class gifttitle
in current element.
Post a Comment for "How Do I Retrieve Text From A Span Tag Inside A Selected Href Tag?"