Click here to Skip to main content
15,889,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Iwant to drag and drop both menu and sumenu at a time ,now for the time it is working for parent menu darg and drop.I want that corresponding submenu should drag and drop.After page refreshing everything comes fine .I have tried a lot,but not getting any solution for it,below is my coding.plz help me.


<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> 


ctp page


XML
<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>
Posted
Updated 9-Nov-15 19:18pm
v2

1 solution

I think you are searching for this : http://touchpunch.furf.com/[^]
 
Share this answer
 

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



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