var path = var here = ""; path = "http://mydomain.localhost'' || "http://mydomain.com"; var here = $("#Navigation li a[href='+Path+']");
href must contain simple quotes because you use double quotes in the beginning, but if have different href you can use something like this $("a[href='+Path+']") -- Atte. Carlos Becar.