We have analyzed your query, it can be achieved by referring the required script file "ej.unobtrusive.min.js" in your layout.cshtml page. And also by enabling the UnobtrusiveJavascriptEnabled in web.config, this UnobtrusiveJavascriptEnabled settings can be found in appSettings of web.config file.
[web.config]
<appSettings> .. <add key="UnobtrusiveJavaScriptEnabled" value="true" /> .. </appSettings> |
<div id="dishtab" style="width:550px" data-role="ejtab">
<ul>
<li><span class="dish pizzaImg"></span><a rel='nofollow' href="#pizzatype">Pizza Type</a></li>
<li><span class="dish sandwichImg"></span><a rel='nofollow' href="#sandwichtype">Sandwich Type</a></li>
</ul>
<div id="pizzatype" style="background-color: #F5F5F5">
<p>Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.</p>
</div>
<div id="sandwichtype" style="background-color: #F5F5F5">
<p>Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.</p>
</div>
@Html.EJ().Tab("dishtab")
</div>
<div style="width: 500px">
@{Html.EJ().Tab("defaultTabs").ShowCloseButton(true).EnablePersistence(true).HeaderPosition(HeaderPosition.Top).Items(data =>
{
data.Add().ID("pizza").Text("Pizza").ContentTemplate(@<div id="pizzatype" style="background-color: #F5F5F5">
<p>Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.</p>
</div>);
data.Add().ID("sandwichtype").Text("Sandwich").ContentTemplate(@<div id="sandwichtype" style="background-color: #F5F5F5">
<p>Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.</p>
</div>);
}).Render();}
</div> |