Click here to Skip to main content
15,906,097 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
jQuery Function is
Importing the JS Files
<script src="~/Scripts/jquery-2.1.4.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>


JavaScript
$(function () {
       $("#sortRows").sortable();
       alert("jQuery Working")
   });

My View is

HTML
@foreach (var item in Model) {
    <tr id="sortRows">
        <td><pre>

@Html.DisplayFor(modelItem => item.ProductName)

@Html.DisplayFor(modelItem => item.ProductCode)
@Html.DisplayFor(modelItem => item.ProductDescritption)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900