Ha, no problem. Give this piece of code a try:
$("#myid img").eq(0).attr("title",
$('#myid/.markup02/div/.field-item').siblings().eq(0).text());
The .eq(0) method allows you to avoid wrapping the $(...) again. Hope
that helps simplify some of the code.
It looks like you might run into performa
Now I see you John Resig. I feel honored talk with you. Congratulations and
tanks for all.
Regards
Mario
2007/5/9, Mario Moura <[EMAIL PROTECTED]>:
Ok I found here:
http://www.visualjquery.com
attr(key, value) ---> Example
But fortunately I found my mistake:
Will work like this
$($("#my
Ok I found here:
http://www.visualjquery.com
attr(key, value) ---> Example
But fortunately I found my mistake:
Will work like this
$($("#myid//img").get(0)).attr("title",
$($('#myid/.markup02/div/.field-item').siblings().get(0)).text());
Without ${...}
Regards
Mario
2007/5/9, John Resig <
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
Mario -
${...} doesn't, currently, exist in jQuery. Did you find an example
somewhere that showed it as working? (It needs to be fixed.)
--John
On 5/9/07, Mario Moura <[EMAIL PROTECTED]> wrote:
Hi Folks
I am trying $("img").attr("title", "${this.src}");
So :
$("img").attr("title",
"${$($('
5 matches
Mail list logo