Search code examples
jqueryhtmlcsshref

Why href doesn't fire?


Why href of this anchor doesn't fire ?

http://jsfiddle.net/3ho7ommm/4/

<span class="menuoptions active">

Anyone can help me ?


Solution

  • It is firing up but u are not able to see it in fiddle result window.

    More over you are passing #

    <a href="#" id="notificationLink"> 
    

    which keeps the link on same page and in code

    $("#notificationLink").click(function()
        {
            $("#notificationContainer").fadeToggle(300);
            $("#notificationContainer2").fadeOut(300);
            return false;
        });
    

    return false statement is stooping the href tag to perform its normal functionality