For JavaScript arrays, you use push()
.
var a = [];
a.push(12);
a.push(32);
For jQuery objects, there’s add()
.
$('div.test').add('p.blue');
For JavaScript arrays, you use push()
.
var a = [];
a.push(12);
a.push(32);
For jQuery objects, there’s add()
.
$('div.test').add('p.blue');