jQuery Bind each() and also click() on the same function
<p>So I have the following fragment:</p>

<pre><code> $(".server").each(function() {
     var element = $(this);
      //bunch of javascript here with element
 });
</code></pre>

<p>I also want to bind a single click event for an <code>id</code> to do the same work as the above, how is this possible, without copying and pasting the entire block and doing:</p>

<pre><code> $("#my-id").click(function() {
       var element = $(this);
      //bunch of javascript here with element
 });
</code></pre>
