Partial views in tabcontroller in mvc4
I added the partial views in tabs.while it is displaying views,views are coming onebyone these are not coming beside.It is showing links,it is not showing tabs .I want to display views when i click on tabs could you please tell me how to do this .
Jaganathan BantheswaranPosted Oct 22, 2013, 7:43 AM
Try something like this,
General
Details
function tabItemClicked(a, action) {
var container = $(a).parents('div.tabs');
var resultDiv = $($(a).attr('href'), container);
$.ajax({
type: "POST",
url: action,
data: {},
success: function(response) {
resultDiv.html('');
resultDiv.html(response);
}
});
}