Is there any elegant way of turning [$(div), $(span), $(li)] into $(div, span, li)?
[$(div), $(span), $(li)]
$(div, span, li)
What I need is a jQuery-wrapped set of elements instead of
Say you have an array of jQuery elements:
let elementList = [$("selector1"), $("selector2"), $("selector3"), ...];
You can simply use the jQuery function ($()) directly on the array which will return a jQuery set:
$()
let jQuerySetOfElements = $(elementList);