function as parameter to $ in jQuery
<p>...what does it mean? I have almost no experience with jQuery, and need to work with some existing code.</p>

<p>All the tutorials talk about is using $() with pseudo-CSS selectors, but what would be the meaning of something like this:</p>

<pre><code>$(function makeFooWriteTooltip() {
    if($("div[name='txttooltip']").length&gt;0){
        $("div[name='txttooltip']").each(
         function(){
</code></pre>
