Set a combobox value from name?



  • I always seems to get stuck when I'm trying to set a combobox value to a certain name.
    Let's say I have 10 preset names displayed in a cmb, I create a new preset and update the cmb so it display 11 names, I also want the cmb to have the newly created preset chosen, so how do I do that in a simple way?
    Do I have to store al names in an array and use indexOf("new preset"), or is it possible to do it another simpler way?


Log in to reply
 

12
Online

1.1k
Users

3.8k
Topics

33.3k
Posts