Calling a function as soon as an element is encountered
<p>Suppose I have an element on my page with id "some_id". I want to call a function as soon as I encounter this element. Something like following.</p>

<pre><code>$("#some_id").call_a_function(function () {
  // do stuff
});
</code></pre>
