Why doesn\'t this work?
var spans = $();
var elem = document.getElementById(\'someId\');
spans.add(elem);
What is the proper way to start
What you actually want to do is use jQuery to it's full potential. You can use selectors to grab and create the collection right away. Your three lines above becomes one line:
var spans = $('#someId');
to add more ids to the collection, you can separate them with commas:
var spans = $('#someId1, #someid2, #someid3');