> I see one thing that may cause the problem: your variable link is a
> jQuery object. This is passed as context a few lines later on, but you
> have to pass a DOM node as context to the $ function.
The context arg can be a jQuery object. From the source:
jQuery = function(a,c) {
<snip>
// Watch for when a jQuery object is passed at the context
if ( c && c.jquery )
return jQuery( c ).find(a);
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/