[jQuery] Re: Executing jquery from jqueried div

2008-11-07 Thread [EMAIL PROTECTED]

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 trtd
 colspan='2'buttonMove/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?


[jQuery] Re: Executing jquery from jqueried div

2008-11-07 Thread Klaus Hartl

On 7 Nov., 23:56, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 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?

First of all the W3C is *not* w3schools.com! They're not related at
all and I found information at w3schools.com of bad (as in incorrect,
outdated) quality. The closeness of the name gives people a false
sense of accreditation, obviously.

http://answers.yahoo.com/question/index?qid=20070927144110AAYkviZ


--Klaus