6 Replies Latest reply on Jul 3, 2009 5:13 PM by Ned Murphy

    pushing arrays only once?

    shintashi Level 1

      say I've got a button I push to add a currently selected term inside a text field/input field to an array, but I don't want to accidentally add the same option twice, or see the same option over and over, what do I have to do to the array?


      here's the original for an array called aNameslist and a variable called namesD



      addmcD.onPress = function(){


      What's necessary to switch an output like


      Jane Doe, Jane Doe, Calaway Donner, John Doe, Jim Dutchy, John Doe, Jane Doe


      into something like


      Jane Doe, Calaway Donner, John Doe, Jim Dutchy