I figured it out with the help of a good friend - jason-palmer.com

var path = location.pathname;
$("a[href='" + path + "']").parents("li").each(function() {
        $(this).addClass("selected");
});

On Sep 24, 7:52 pm, jrutter <[EMAIL PROTECTED]> wrote:
> Im having trouble getting this to work, I feel like Im really close.
>
> Does anyone have any idea?
>
> var path = location.pathname.substring(1);
> if ([EMAIL PROTECTED] == path]) {
>         $('.nav ul#example li.addClass('active'));
>
> }

Reply via email to