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

How to combine two javascript FormData objects

I need to combine two FormData objects and post them using XMLHttpRequest. One of the forms contains file input. It doesn’t work when I use $.extend or if I use serialize() to combine the form that doesn’t have file input. Any idea how to do this? Answer You cannot couldn’t. FormData is was unfortunately not enumerable. However, as you say

Advertisement