David,
Naturally it doesn't work :)

if($(this).is("span.a")) would never be true, since "this" is refering
to the parent node of "span.a".

> $("span.a").parent().each(function() {
>  if($(this).is("span.a")){
>   var t = $(this).text();
>   $(this).html(t);
>  }
> });

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to