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.