[jQuery] $('a').click ... How to bind it again?

[jQuery] $('a').click ... How to bind it again?


Hello jQuery world!
I work with this lib since about 6 month, bought the book "Manning
jQuery in Action" and I was very happy to give a "donation" to John
for his great work... He really change my life, we can now build RIA
in less-less and less time... Thanks to John and his team, bravo!
Here is a quick and easy question for the gurus out there…
     $('a').click( function() {
     theLink = $(this).attr('href') + ' #mycontent';
$('#mycontent').load(theLink);
             return false
})
As you all know, this will load the content of #mycontent and display
it into #mycontent , but the links in this new content will not be
“bind” to $('a').click, the page will load like a regular page, right?
I can load again the “script” to the “bind” it again with the $
('a').click
There is a better way right? What are my options here? What you guys
do?