Put a space after me or alternatively, use a delimiter if it is possible. -- HTML < a href="site" rel="me " >me< /a > < a href="site" rel="met" >met< /a >
-- Code xfn_me = $("a[rel*='me ']").length; or xfn_me = $("a[rel*='me.']").length; On Nov 17, 6:57 am, UVL <andrea.do...@gmail.com> wrote: > I'm trying to filter the XFN relationships meta data. If you don't > know, it works like this: > > < a href="site" rel="friend colleague" >Name< /a > > > in REL you can have various values, like "friend", "collegue" but even > "me" and "met" > > because you can have multiple values, I did this: > > xfn_me = $("a[rel*=me]").length; > > but this doesn't work, because both "me" and "met" are matched! > > Is there a way to filter the values exactly, even when there are > multiple values?