Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7975867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:45:46+00:00 2026-06-04T08:45:46+00:00

I have the following JMenu inside my asp.net mvc3 web application:- <ul id=jMenu> <li><a

  • 0

I have the following JMenu inside my asp.net mvc3 web application:-

<ul id="jMenu"> <li><a class="fNiv">Home</a>
                <!-- Do not forget the "fNiv" class for the first level links !! --> 
                <ul> <li class="arrow"></li> 
                <li><a>Category 1.2</a> 
                <ul> <li><a>Category 1.3</a></li> 
                <li><a>Category 1.3</a></li> 

But if i replace the <a class="fNiv">Home</a> with <div class="fNiv">@Html.ActionLink("Home", "Index", "Home")</div>, then the Jmenu will not show the submenus when i move the mouse over the Home action link.
So is there a way to let the Jmenu works on @htmk.actionlink same as for the links
BR

:::Updated:::-

I changed my Html.Actionlink to be

<li>@Html.ActionLink("Home", "Index", "Home", new { @class="fNiv" }, null)

but i am getting the following error when i move the mouse over the menu:-

Microsoft JScript runtime error: ‘ULWidth’ is undefined
on the following code:-

ChildList.css({top:position.top,left:position.left+ULWidth,width:ULWidth}).children().css({width:ULWidth
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:45:47+00:00Added an answer on June 4, 2026 at 8:45 am

    As the comment says, you should apply the “fNiv” class to the first level anchor. 🙂

    In the plug-in, they bind all anchors applied with “fniv” class with mouse over event to show sub menu.Hence, if you do NOT apply “fniv” class over your parent link, the sub menu will never shown.

            /* Actions on parents links */
            if(!opts.openClick)
            $('#jMenu li a.fNiv').bind({
                mouseover:function(){
                    var $this = $(this);
                    var $child = $this.next();
                    ULWidth = $.jMenu._returnUlWidth($this);
                    $.jMenu._closeList($("#jMenu ul"));
                    if($child.is(':hidden'))
                        $.jMenu._showFirstChild($this);
                }
            });
            else
            $('#jMenu li a.fNiv').bind({
                click:function(e){
                    e.preventDefault();
                    var $this = $(this);
                    var $child = $this.next();
                    ULWidth = $.jMenu._returnUlWidth($this);
                    $.jMenu._closeList($("#jMenu ul"));
                    if($child.is(':hidden'))
                        $.jMenu._showFirstChild($this);
                }
            });
    

    EDIT : Replace <a class="fNiv">Home</a> with this. <%=@Html.ActionLink("Home", "Index", "Home", new { @class="fNiv" })%>
    It should work fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following codes in asp.net: <asp:dropdownlist id=ddlApp runat=server /> <asp:button id=btnSmt runat=server Text=Submit
I have following div in a page (I can not modify). <div id=:0.control>Click me</div>
I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
I have following class: class A { public IEnumerable Song { get; set; }
I have following class which reads and writes an array of objects from/to a
I have following setup. from django.db import models from django.contrib.auth.models import User class Event(models.Model):
I have following code in html: <div> <div style=float:left;margin:0.5em> <span class=title>Label1</span><br/> <input type=text name=name1
I have following mapping definitions: <class name=Role table=Role optimistic-lock=version > <id name=Id type=Int32 unsaved-value=0
I have the following SwingMenu class. package base; import javax.swing.*; public class SwingMenu {
I have following design requirements: interface Server {} public class ServerImpl implements Server {}

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.