I was confusing.... sorry. here is teh solution i found:

$("#ctMain .mailLink").each(function(){
                $(this).html($(this).attr("title")+"@"+$(this).attr("rel"));
        });

greetz, captain.


captainh2ok wrote:
> 
> Hello to all,
> 
> i have the following code:
> 
> $("#ctMain
> .mailLink").html($(this).attr("title")+"@"+$(this).attr("rel"));
> 
> 
> This code-snippet should do the following:
> 
> fetch each link with the classname "mailLink", gets his attributes "title"
> and "rel" and puts the values in the link as text (between the  -Tags. 
> But this fails. i just get "undefined".
> 
> Has anyone an idea of getting the attribute-values of each link?
> 
> Thanks!!
> 
> captain
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-getting-Attributes-to-innerHTML-tf4128321s15494.html#a11740314
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to