Getting Sibling - Child ID?
My html renders something like this:
- <td class="titleCell">
- <a class="title" id="1234 />
- </td>
- <td class="bodyCell">
- <span class="content" id="abcd" />
- </td>
Using this the following, I able to get the title's ID
- $('a.Title').bind('click', function(){
var id = $(this).attr('id'); //id equals 1234
});
How can I also get the <span> id using jQuery? I've tried several things using the .next and .sibling methods but I can't get them to work. I would need to get 1234 and abcd. Thanks for any help!