davesmiths
9/25/2014 - 1:31 PM

add elements to an empty jquery collection (js)

add elements to an empty jquery collection (js)

var $list = $([]);
$list = $list.add();
// This gist is just a reminder to reassign $list after adding. I would forget and wonder why it didn't work