Here this sortable function is return emplty string
Index.cshtml
<div id="sortable" class="col-lg-9 col-md-9">
@foreach (var chart in Model.Charts)
{
<div class="col-lg-4 col-md-6 hidden" [email protected]("chartNumber{0}", chart.ChartOrder)>
<figure class="highcharts-figure1">
<div [email protected]("container{0}", chart.ChartOrder)></div>
</figure>
</div>
}
</div>
Javascript
$("#sortable").sortable({
containment: 'parent',
cursor: 'move',
scroll: false,
update: function () {
var order = $("#sortable").sortable('serialize');
console.log(order); // emplty string
}
});
I want that when user update the charts order then new array should be formed so that i can send this array to the Post function so that i can store the sequence of the charts. But here this sortable function is return empty string, so need help
