facebook

Adding Items To Combobox/Spinner

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #330642 Reply

    bmfc27
    Member

    Gentlemen:

    I have read and followed (as best I can) the example of adding items to a custom list. I was able to create and modify a list dynamically.

    I am not able to make the connection on how to add items to a Select List Menu that is displayed using Spinner Mode.

    Any pointers would be very helpful.

    Thanks

    Rich

    #330685

    Hi bmfc27,

    I tried with next code and works perfect for me.

      var myOptions = {
        val1 : 'text1',
        val2 : 'text2'};
    
      $.each(myOptions, function(val, text) {
        $('select[name="combobox1"]').append( new Option(text,val) );
      });
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Adding Items To Combobox/Spinner

You must be logged in to post in the forum log in