2 Replies Latest reply on Mar 21, 2015 12:04 PM by matt.clasener

    Put symbol id in textarea

    matt.clasener

      I'm making a Doughnut Flavor Selector. I've made a few buttons to change the color of the Oval lying behind the doughnut. But I want to be able to change the text in "Pick a flavor" to the name/Id of the Button clicked on.

      I've used:
      // Change the text in an element
      sym.$("Pick_your_flavour").html(e.currentTarget.id);

      This works fine... But it shows the Root swell (Stage_Strawberry)... And I want it to only show Strawberry. Is there a way to do this easily?

      Screen Shot 2015-03-20 at 17.22.49.png

      I would like to bypass putting things in variables. I want to make it as easy as possible...

       

      It would be cool to copy and paste a button, change the name of the symbol... and done...

       

      Any ideas?