merging tow jquery selections

Posted by Praveen Prasad on Stack Overflow See other posts from Stack Overflow or by Praveen Prasad
Published on 2010-03-08T11:04:33Z Indexed on 2010/03/08 11:06 UTC
Read the original article Hit count: 290

Filed under:
        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

© Stack Overflow or respective owner

Related posts about jQuery