OK Oskar,
here it is: http://www.jsfiddle.net/4Jw29/
here i get an error that the function insertTag is not defined (but it
is and works fine in my environment)
thx in advance

On 15 Aug., 17:25, Oskar Krawczyk <[email protected]> wrote:
> Hamburger, for the billionth time, please use jsfiddle.net.
>
> On 2010-08-15, at 17:07, hamburger wrote:
>
> > Hello whats wrong here?
>
> > function insertTag(insertTagArrayNumber){
> > var insertTagArray = [' <blockquote></blockquote>',' <em>my
> > emphasized text</em>',' <strong>my bold text</strong>',' <code>my
> > code</code>'];
>
> >                    var txt =(insertTagArray[insertTagArrayNumber-1]);
> >                    console.log("text",txt); //OK
> >                    console.log("test2",$('comment').value); //OK
> >                    $('comment').set('html',$('comment').value + txt);
> >    };
>
> > there is only shown the $('comment').value in the text field.
> > txt will be ignored.
> > firebug shows that the txt is changed to: &ltstrong&gtmy bold text&lt/
> > strong&gt

Reply via email to