Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a <a href="http://jsfiddle.net/yrshaikh/puXu5/" rel="noreferrer">jsfiddle</a> for Jquery Tabs.</p> <p><strong>Step 1: Import</strong> </p> <pre><code>&lt;link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" /&gt; &lt;script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="@Url.Content("~/Scripts/jquery-ui-1.8.24.min.js")" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p><strong>Step 2: Html Code</strong> </p> <p>In the ‘li’ tags you need to define the tab header and for each tab header a tab content div exists, the code below is pretty self explanatory.</p> <pre><code>&lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#tabs-1"&gt;Tab Header 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tabs-2"&gt;Tab Header 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tabs-3"&gt;Tab Header 3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="tabs-1"&gt; Content for Tab 1 goes here.&lt;br/&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;/div&gt; &lt;div id="tabs-2"&gt; Content for Tab 2 goes here.&lt;br/&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;/div&gt; &lt;div id="tabs-3"&gt; Content for Tab 3 goes here.&lt;br/&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Step 3: Final Touch – Jquery call to tabs()</strong></p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $("#tabs").tabs(); }); &lt;/script&gt; </code></pre> <p><strong>Output:</strong></p> <p><img src="https://i.stack.imgur.com/5EAm5.png" alt="enter image description here"></p> <p><a href="http://yassershaikh.com/introduction-to-jquery-ui-tab-with-asp-net-mvc/" rel="noreferrer">Source</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload