script type=text/javascript src=jquery-1.1.4.js/script
script type=text/javascript
$(document).ready(function(){
$(#comments span h5 a).click(function(){
var author = $(this).parent(span).next(p).text();
alert(author);
})
});
/script
/head
body
div
I hope this isn't a double post, my other one was over 12hrs ago and
it never displayed. I'm trying to get the text out of a p tag, I can
do this if I set an id name, but I don't want to id everything, since
with jQuery I don't need to. The premise is I'm clicking a link and it
gets two values
2 matches
Mail list logo