Treehouse: Grow your CSS skills. Land your dream job.

jQuery address plugin: issue with active state

  • # April 19, 2012 at 3:41 pm

    I cannot get it to apply the active class when the link is clicked on, what could I be doing wrong?

    Here is my HTML:

    And here is my JS

    $('#slides a').address();
    $('#slides a').click(function()
    var address = $.address.value($('#slides a').attr('href'));

    if($(this).attr('href') == address)
    } else {

    also it is returning [object Object] / undefined for the alert….

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.