I need to display selected values of a tree structure in a show box on the other side of the page using code. However, I also need to include HTML input boxes in some lines of the tree structure so that users can input data. The challenge is getting the inputted data to show up in the show box when the user presses ENTER after entering their data into the input box within the tree structure.
The current code displays selected data from the tree structure in the show box when an element is clicked. However, I now want to ensure that when the input box for entering new data is clicked, it does not appear in the show box. Instead, I want the inputted data to be displayed in the show box after the user enters it and hits ENTER. Does anyone have any ideas on how to achieve this?
For reference, here is a working sample of my page: http://codepen.io/anon/pen/WvQxeL