Question

I just made a lavalamp menu with jQuery. The problem is when I click on the menuitems nothing happens. But I have to navigate to another page. This is the HTML code:

    <ul class="lavaLampNoImage" id="1">
        <li class="current"><asp:HyperLink ID="hplMeldingen" runat="server" 
            NavigateUrl="~/Overzichtscherm.aspx">Overzicht</asp:HyperLink></li>
        <li><asp:HyperLink ID="hplRapporteringen" runat="server" 
            NavigateUrl="~/Rapporteringen.aspx">Rapporteringen</asp:HyperLink></li>
        <li><a href="/Overzichtscherm.aspx">Travel</a></li>
    </ul>

This is the jQuery code:

$(function() {
        $("#1, #2, #3").lavaLamp({
            fx: "backout",
            speed: 700,
            click: function(event, menuItem) {
                return false;
            }
        });
    });

Can someone help me please? Thank you in advance!

Was it helpful?

Solution

return false cancels the click action

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top