+ 1

How to get union of two or more jQuery NodeList elements stored in variables?

For Example : let input = $(".inputs"), source = $(".sources"); // Now I want to merge both variables input and source into one. How do I achieve that? // Something like this - let add = input + source; // And I don't want to do this - add = $(".inputs, .sources")

24th Apr 2019, 7:41 AM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
1 Resposta
0
let add = {input, source}; What is the reason for this?
21st Oct 2019, 11:21 PM
Jônatas Araripe
Jônatas Araripe - avatar