jQuery .click() event doesn't work in load()-ed document
hey everyone,
first entry!
weird title, i know but i didn't know any better.
first of all, i'm new to jQuery and still have some problems, but so far i like it a lot.
now to my problem:
i have a basic 2 column page, on the left is the navigation, on the right the content.
i'm loading in the content with the load() method - some php generated html code which looks like this e.g.
- <div id="container">
- <div id="toggle">TOGGLE</div>
- <div id="showArticles">
- <table id="bildertable">
-
- //table content
- </table>
- </div>
- <div id="addArticle"></div>
- </div>
my script says:
- $document.ready(function(){
- $("#toggle").click(function(){
- $("#showArticles").slideToggle();
- });
- });
so if i click on the toggle div.. nothing happens
so i tried to put a <p id="toggle"> in the navigation bar which is static (not being load()-ed in via jQuery)
and it worked 
so it seems to me, that jQuery can't get the click event out of the load()-ed page
or did i do something wrong?
pls help