merging tow jquery selections
- by Praveen Prasad
var _sel1 = $('.red');
var _sel2 = $('.yellow');
suppose there are 2 jquery sections stored in 2 vars, how can i merge them in one
i dont want this way
var _sel3=$('.red,.yellow') or $('.red').add('.yellow');
i actually want to merge these 2 selections stored in varaible (_sel1,_sel2) to produce a third varaible