jQuery load or not?
jQuery load or not?
Hey Guys I'm new to jQuery, but the things i've done are soo wonderful.
Now my question:
I have a page with 6 php-files, one for every navigation. When I click home, the home.php is loaded with load();
That works fine for the first look. But in the home.php are new ID's which can be clicked and my jQuery don't get them...
I don't know what to do, or if there is a better solution for my projekt... maybe the load function is not the right one for me.
I hope you can help me!
Cheers
Here a short example:
$(document).ready(function() {
$(
'#container').load('home.php');
// id newest which is in the home.php
$("#newest").click(function(){
$(
"#categoriesmenu").hide("fast");
});
}