jQueryのセレクターを変数で複数使うとき

はじめに

jQueryセレクターを変数で、さらに複数(or)指定することがあったのでメモ的に。

var selector = new Array();
selector.push("#haseharu");
selector.push(".cheb");
selector.push("#otani");

$(selector.join(,)).text('Li:d tech!')