I'm developing an ASP.NET MVC 4 web application, which utilises the latest JQuery and JQuery UI libraries, and automatically has references to them (in the _Layout.cshtml page).
I've been following the tutorial here to implement drag and drop reordering functionality on a table.
But even when I explicitly add the reference to the latest JQuery UI file on the view model where it's required, e.g.
<script src="/Scripts/jquery-ui-1.10.2.min.js" type="text/javascript"></script>
the sortable() method doesn't work. It doesn't show up in the Visual Studio intellisense, and it doesn't work when run. On running on Internet Explorer (or any browser), I simply get an error that says, "Object doesn't support property or method 'sortable'".
Here is how I'm attempting to use the method:
<script type="text/javascript">
$(document).ready(function()
{
$("#clueTable tbody").sortable();
});
</script>
I notice from the Intellisense there is a property 'sortables' and 'sort' that it finds from the JQuery UI file, but not 'sortable'.
So the reference seems fine, and it's definitely the latest JQuery UI code (I verified this by getting the latest file) so I'm a bit mystified with this one.