Make the first li the last regardless of how many li

jQuery("#list li:last").after(jQuery("#list li:first"));

Leave a Reply

Your email address will not be published. Required fields are marked *