Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Current page item

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35444
    Rai
    Member

    Hi, I find this little function here in css-tricks but is not working on project.

    Any ideas:

    
    
    $(function(){
    $("a").each(function(){
    if ($(this).attr("href") == window.location.pathname){
    $(this).addClass("current");
    }
    });
    });

    ?>
    #92020
    rolf
    Member

    This is javascript, not php

    ?

    #92613
    Rai
    Member

    True. My fault.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.