Save jQuery UI Sortable
-
I have a simple jQuery Sortable code and I need it to save when the order is changed.
I have seen this post but I can’t get it to work.
I think my main issue is I don’t know where to put this:
$args= array( 'meta_key' => 'c3m_shown_on', 'meta_value'=> 'home' 'orderby' => 'menu_order', 'order' => 'ASC' ); $box_query = new WP_Query($args);
Here is the basic part of my code …
HTML: <ul id="sortable"> <li class="ui-state-default">Item 1</li> <li class="ui-state-default">Item 2</li> <li class="ui-state-default">Item 3</li> </ul> jQuery: <script> $(function() { $( "#sortable" ).sortable(); }); </script>
*Note I am using Multisite
- The topic ‘Save jQuery UI Sortable’ is closed to new replies.