jquery that just waits
<p>I normally set up my javascript code to have a function.  But due to the fact that the application generates most of the HTML and javascript calls from a VB6 application I would like to create a jQuery function that is more like a listener.  So for example if I have a td tag that has the class 'gridheader1' I would like the jQuery to wait for it to be clicked.</p>

<p>I'm assuming that I would use the bind...  But I'm getting javascript errors with it...  If you can offer suggestions on where my code is wrong that would be great.</p>

<pre><code>$('.gridheader1').bind('click', function()
{
  alert('hi I got clicked');
});
</code></pre>

<p>Again this just has to sit out there on the main .js file.  It isn't attached to any functions.  Please let me know.</p>

<p>Thanks</p>
