Combining string and object as a jQuery selector
<p>I'm having a hard time finding the solution for this for some reason -- perhaps it's right under my nose.</p>

<p>But is there a way to essentially combine a string and an object so I'm not repeating the same method on a certain event?</p>

<pre><code>$j(window).resize(function(){
  //stuff here
});

$j('body').resize(function(){
  //same stuff here
});
</code></pre>

<p>Maybe I'm just thinking about it the wrong way?</p>

<p>Thanks.</p>
