> So, for instance, with that link inside that div, sometimes as I create it,
> I'd like to attach an event to JUST that anchor tag, rather than having to
> create a custom ID, assign it, then do another jQuery call to bring it up
> and attach an event.

Still doable, but less readable:

$('<a href="jQuery">jQuery</a>').appendTo($('<div align="right"
class="my_div">').appendTo('body')).click(function(){
    alert('Ouch');
    return false;
});

I hear what you're saying though.  Sometimes you want that dom element
on its own.  And too much  chaining can make reading and debugging
difficult.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to