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