you should do it like this:
http://jsfiddle.net/cft4J/1/

the ok-div is created when you submit the form. but you trying to access it before.

On 27.07.2010 21:09, Sid-ahmed D wrote:


> voila la demo :
> http://jsfiddle.net/cft4J/
>
> Merci de votre aide.


Perfect! HTML fits well into the DOM
However, my javascript functions do not apply to these new elements.

Example code used on the new:

window.addEvent ('domready', function () (
$ ('Test'). AddEvent ('click', function (e) (
e.stop ();
          alert ('ok');
));
));


On 27 juil, 20:55, Sid-ahmed D<[email protected]>  wrote:
Excellent :P
Perfect

Thanks all :)

On 27 juil, 20:43, Sanford Whiteman<[email protected]>
wrote:

How can I be sure elements are in the DOM ?

Use your browser's DOM inspector.

-- S.

Reply via email to