[jQuery] Ajax .click function after .get
Hello guys
I am just starting to play with and learn jquery. I have come to some
problems and were able to solve them.
I think that its something obvious that i am missing in the .get()
I am trying to create a page that will never refresh so for the
navigation bar i decided to use the ajax .get function to change the
innerhtml of a special div tag. But when i do that the new content
that is in the html does not seem to work with my jquery rules that i
have
$("a[href^=#]").not(".point").click(function(){
$("#main").html('<div id="loading">Loading Content<br /><img
src="images/loader.gif" alt="Loading"/></div>');
$.get("ajaxreader.php?idpage="+$(this).attr("id"),function(data){
$("#main").html(data);
});
});
the links inside the html that get changed are also href="#something"
so they should work but they don't.
Any help or tips will be appreciated?
If you have a better way to do refreshless sites using jquery can you
please tell me?
Thanks in advance