facebook

Text in combobox

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

    alonso100
    Member

    Hello,

    how can I update the text in the combobox dynamically ?? so far I have found nothing that helps to update the text. I know how to feed the combobox and also how to preselect a value per code. The examples in the forum an the documentation do not mention this part or it is not working for me.

    Right now, only when I make a click on the combobox it recognizes the preselected item and sets the corresponding text.

    #334380 Reply

    alonso100
    Member

    Ok, I found finally the correct code:

    var selec1="value4";
    $('select[name="combobox1"] option[value="'+selec1+'"]').attr('selected','selected');
    phoneui.preprocessDOM("#m1-Untitled2");
    #334401 Reply

    support-michael
    Keymaster

    @alonso100

    Thanks for sharing your solution. We will give it a test drive. Then plan to update the js snippets doc with the solution so that others can benefit from your insight and effort.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Text in combobox

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