perfect
2012/11/10 Jason Westbrook <[email protected]> > > $('test').insert(a); // will try and add that content as the content of > that input (which you don't want) > > $('test').insert({"after":a}); //will insert that content AFTER the > specified element > > Jason Westbrook | T: 313-799-3770 | [email protected] > > > > On Fri, Nov 9, 2012 at 3:15 PM, Laurent Barre <[email protected]> wrote: > >> it's good. >> I can add the element in the body. >> >> Now, I tried to add this element under "input" element. >> >> example : >> <input id='test' .....> >> >> <div id="span_titre" class="reqformError parentFormformID formError" >> style="opacity: 0.87;margin-left:245px;margin-top:7px;"><div >> class="formErrorArrow formErrorArrowBottom"><div class="line1"><!-- >> --></div><div class="line2"><!-- --></div><div class="line3"><!-- >> --></div><div class="line4"><!-- --></div><div class="line5"><!-- >> --></div><div class="line6"><!-- --></div><div class="line7"><!-- >> --></div><div class="line8"><!-- --></div><div class="line9"><!-- >> --></div><div class="line10"><!-- --></div></div><div >> class="formErrorContent"> Vous devez saisir une valeur<br></div></div> >> >> with : >> >> $('test').insert(a); >> >> but element a is not visible. >> apparently element "input" isn't considered as an element. >> >> do you have a method to locate "input" element ? >> >> >> >> >> 2012/11/9 fntzr <[email protected]> >> >>> Use >>> >>> var a = ' <div id="span_titre" class="reqformError parentFormformID >>> formError" style="opacity: 0.87;margin-left:245px;margin-top:7px;"><div >>> class="formErrorArrow formErrorArrowBottom"><div class="line1"><!-- >>> --></div><div class="line2"><!-- --></div><div class="line3"><!-- >>> --></div><div class="line4"><!-- --></div><div class="line5"><!-- >>> --></div><div class="line6"><!-- --></div><div class="line7"><!-- >>> --></div><div class="line8"><!-- --></div><div class="line9"><!-- >>> --></div><div class="line10"><!-- --></div></div><div >>> class="formErrorContent"> Vous devez saisir une valeur<br></div></div>'; >>> >>> $(document.body).insert(a); >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Prototype & script.aculo.us" group. >>> To post to this group, send email to >>> [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/prototype-scriptaculous?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Prototype & script.aculo.us" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/prototype-scriptaculous?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
