Skip to content
Advertisement

Tag: jquery-ui

Sorting li elements by class? jQuery / Javascript

I have multiple li rows like this I want to sort all the li rows by the span class “Status_online”. is this possible? Answer UPDATE You can use a combination of closest() to find the each .Record_row that is an ancestor of each .Status_online. Then use .each() on each online .Record_row and use .before() to place them before the first

Advertisement