6 Replies Latest reply on Jul 6, 2015 12:36 AM by ibrahim elsorady

    How to pass the value of an input text to another field?

    Gil1 Level 1

      I created a text field on the stage and named it "name".

      Then, to make it an input text I added this code to compositionReady:

       

      var name_input= sym.$("name");

      name_input.html('<input type ="text" placeholder="Enter you twitter handle"/>');

       

      That part works fine.

       

      I put a button and a click action that has:

      sym.$("nOutput").html(sym.$("name").val());

       

      to pass what is enetred on "name" to a text filed "nOutput", but it does not work.

       

      So, how I grab the text content of "name"?