I think the best way to do this will be to put an <span> that you can
select via jQuery and update it's text.

$('h3', $
(this).parent().parent().parent()).find('.my_cool_span').text($
(this).text());

Also you might consider optimizing this parent().parent()... stuff bu
using a selector..
http://docs.jquery.com/DOM/Traversing/Selectors

Regards,
Emil Ivanov

On Jun 5, 4:39 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> hello jQ-zillos !
>
> i have a list of links organised in subsections, and i would like to modify 
> each section title, adding to it a value provided by the link. Clicking on 
> another link should reset the section title and append it with the new link 
> 's value.
>
> I'm puzzled on how to code this efficiently. I have so far:
>
> $("h3",$(this).parent().parent().parent()).append($(this).text());
>
> it works, except that it does not reset the section title before appending 
> the next click 's value. so in the end it gets longer and longer...
>
> Any idea how to do this would be appreciated.
>
> Thank you!
>
> Alexandre
>
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.472 / Base de données virus: 269.8.9/832 - Date: 4/06/2007 18:43

Reply via email to