[jQuery] Filter (attribute, value)

[jQuery] Filter (attribute, value)


Hi!
Is this right syntax in my filter (line #3)
I can't seem to get what I want..
    var path = location.href ;
    var relPath = path.replace('http://mydomain.localhost', '') ||
path.replace('http://mydomain.com', '') ;
    var here = $("#Navigation li a[href=''+relPath+'']")
I want "#Navigation li a" with a href that matches current relative
path.
I've tried different combinations of quotes, but can't seem to get it
right..
..the or-statement in second line doesn't function either. Any short
solutions?
Thanks!