[jQuery] Re: Simple JQuery selection question

2009-03-13 Thread truthseekr
I haven't tested it, but the idea is to get the parent of the clicked > > image with: > > $(this).parent() > > and then get the sibling with the class 'title'. This will be > > referenced with the variable $title. > > > On Mar 12, 11:46 am, truthseek

[jQuery] Simple JQuery selection question

2009-03-12 Thread truthseekr
I am a beginner, so please excuse my ignorance. I have a simple html page with the following structure. When the image is clicked, I want to be able to get the title of the person and add as title of the image. I am not sure how to get the selected element 'title' and not all the li.title class it