I am not sure about using the element "button" ? The W3C says it isn't
supported cross browser ( http://www.w3schools.com/tags/tag_button.asp
). Have you tried this using an input element instead?

On Nov 7, 10:01 pm, Althalos <[EMAIL PROTECTED]> wrote:
> 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?

Reply via email to