There may be a way to reload the javascript for the new DOM elements
is taken into account.

On 27 juil, 21:54, Sid-ahmed D <[email protected]> wrote:
> yes, I could.
> But in my use, this function can be used by different elements.
> I did this at the beginning (http://jsfiddle.net/FFCp8/) but the real
> problem in my use after 2 / 3 shares input function test () starts 2 /
> 3 times.
>
> On 27 juil, 21:46, "g.schlmm" <[email protected]> wrote:
>
> > 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