7 Replies Latest reply on Jul 22, 2013 10:22 AM by AMULI

    How to put an input text to an other textfield w/ same format

    chino_10

      Hi friends, i think it's easy what I', trying to do, but it doesn't work for me.

       

           Let me explain

       

      I've created an input text inside a symbol called "Asks"

      in a timeline triger i use:

       

      message = sym.$("texto");                                  // texto is a textfield

      message.html("Write here: ");                             

      inputMessage = $('<textarea />').attr({'type':'textarea','value':'', 'id':'message'});

      inputMessage .css ('font-size', 18);

      inputMessage .css ('box-shadow', '#0a81fb');

      inputMessage .css ('width', 600);

      inputMessage .css ('height', 250);

      inputMessage .appendTo(message);

       

       

      Then in an other symbol called "Final" in a timeline trigger i use :

       

      myField= sym.$("Text");

      myField.html(inputMessage.val());

      console.log(inputMessage.val());

       

       

       

      and it works but here is my question

       

      in my input text :                                                                                     in my "final" text:

       

      Hello!:                                                                                           Hello!:My name is chino_10.Nice to meet you.

       

      My name is chino_10.

       

      Nice to meet you.

       

       

      I need my "final" text with the same format and </br>.

       

      I hope you can help me .

       

      Thank you