TRIGGER EVENT ON TAB MENU CLICK IN JQUERY

Simond Gear

Total Post:26

Points:182
Posted by  Simond Gear
 636  View(s)
Ratings:
Rate this:
Hi All,

I have a tab menu. i.e. below:


I want to access all related pages in click of this tab menu and their submenu in jquery. Can anyone give me a solution, how to call a partial view in click of tab menu.
Please help me.
Thank you.
  1. Anupam Mishra

    Post:135

    Points:949
    Re: trigger event on tab menu click in jQuery

    Hi Simond,


    This is a simple Form to call partial view:

    <div id="tabs">
      <ul>
        <li><a href="#Home">Home</a></li>
        <li><a href="#Employee">Employee</a>
         ..............
            .........
    </li>
        <li><a href="#tabs-3">third tab</a></li>
      </ul>
      <div id="Home">
        @Html.Partial("HomeTabView", Model)
      </div>
      <div id="Employee">
        @Html.Partial("EmpTabView", Model)
      </div>
      <div id="About">
        @Html.Partial("AboutTabView", Model)
      </div>
    </div>
     

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!