+ 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")
1 Answer
0
let add = {input, source};
What is the reason for this?