Hi,

I'm making the hreflang attribute visible ; css would be :

a[hreflang]:after {
        content: "\0000a0[" attr(hreflang) "]";
}

but it doesn't work on MSIE, so I try the jQuery way:

  $('[EMAIL PROTECTED]').each(function(){
    $(this).after(
      ' ['+this.hreflang+']'
    );
  });

this works, but it's too much code, I would dream of having a one-liner:

  $('[EMAIL PROTECTED]').after(' ['+this.hreflang+']');

It doesn't work (or, not this way), because 'this' is not the current DOM
node, but the HTMLDocument itself.

-- Fil


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

Reply via email to