<script src="//code.jquery.com/jquery-1.10.2.js"></script> <script type="text/javascript" src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script type="text/javascript"> var jq = $.noConflict(); jq(function() { var strURL = '<?php echo HTTP_ROOT; ?>'; jq("#list").sortable({class: 'move', update: function() { var order = jq('#list').sortable('serialize'); alert(order); $.post(strURL + "menus/reorder", order, function(theResponse) { }); } }); }); </script>
<table class="table"> <thead> <tr> <th width="5%">Sl No</th> <th>Menu</th> <th>Assign Page</th> <th style="text-align:center;">Action</th> </tr> </thead> <tbody id='list'> <tr></tr>//parent menu <tr></tr> //submenu <tr></tr> //submenu of submenu </tbody> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)