Hello, I have a very general question on how jquery actually works. It seems that when I change content in a div using $.post and .html() I can't use jquery in that info that I just pulled from my external php script. Is this right, or am I doing something wrong?
I have a js file that looks like this: $("button").click(function () { alert('test'); $("p").hide("slow"); }); and my php file generates code like this: echo "<tr><td colspan='2'><button>Move</button>"; And that code is inserted into a certain div. But when I click the button there is not alert and p doesn't hide. Can anyone please tell me why?