okey, you understood me completely right:)
and I understand the issue.

So the best way to do this is to make a callback script that run
$("#contents .tooltip").tooltip({
    track: true,
    delay: 0,
    showURL: false,
    opacity: 0,
    fixPNG: true,
    showBody: " - ",
    extraClass: "pretty",
    top: -15,
    left: 5
});
after the new contents have been placed in #contents div?

thanks for all your help!


On 12 Mai, 10:02, Steven Yang <kenshin...@gmail.com> wrote:
> correct me if i misunderstood you
> so what you mean is that you have some element with class "tooltip" when the
> page load the first time and when you call $(".tooltip").tooltip() things
> work.
> but when you call ajax and load some more content (containing element with
> class "tooltip" as well) into the page the newly loaded elements do not have
> tooltip right?
>
> if this is the case, this is because when you call $.tooltip it only applies
> to the element thats on the page already. if you add new content to the page
> you have to apply it to these new elements manually

Reply via email to