Mario Moura wrote:
I am trying $("img").attr("title", "${this.src}");

With this syntax, you are setting the value of the title to the literal string

    ${this.src}

You might want to look at the attr(key, fn) syntax at

    http://docs.jquery.com/DOM/Attributes#attr.28_key.2C_fn_.29

or at syntax like this

    $("img").each(function(index) {
        // here "this" refers to the <img> element.
        // "this.siblings().get(1)" might be what you want
    });

if you need to scope the "this" to the image element.

Good luck,

  -- Scott

Reply via email to