How can I change the order of both lists, while preventing to mix them up. I know how to do it with one list, but get stuck when I got several..
HTML:
<ul>
<li>A</li>
<li>B</li>
</ul>
<ul>
<li>C</li>
<li>D</li>
</ul>
<a href="#" class="switch_order">Switch</a>
jQuery
$('body').on('click', '.switch_order', function(e){
var list = $('ul');
var listItems = list.children('li');
list.append(listItems.get().reverse());
});