Page 1 of 1
How to programmatically set the combobox selected value
Posted: Mon Oct 06, 2014 2:05 pm
by B510
Dear All,
I have a combobox that contain the items below:
Red
Blue
Black
Yellow
How to programmatically set the combobox selected value to Blue?
please help
thanks a lot in advance
Regards
How to programmatically set the combobox selected value
Posted: Mon Oct 06, 2014 4:00 pm
by B510
I tried codes below, but no luck
Appery('cboColor').val('Blue').selectmenu('refresh');
How to programmatically set the combobox selected value
Posted: Mon Oct 06, 2014 4:25 pm
by Kateryna Grynko
Hello,
Could you please clarify what you mean under combobox? If this is a checkbow group you can use this code:preAppery('mobilecheckbox_92').find('input').prop('checked', true).checkboxradio('refresh')/preWhere mobilecheckbox_92 is a name of the checkbox with value = Blue.
How to programmatically set the combobox selected value
Posted: Mon Oct 06, 2014 11:14 pm
by B510
No.. I meant the select list component... I have 4 items in the select list they are
Red
Blue
Black
Yellow
How to programatically select ' Blue ' as selected ..
Thanks
How to programmatically set the combobox selected value
Posted: Tue Oct 07, 2014 6:09 am
by Evgene Karachevtsev
Hello,
In this case your code is correct, please check the value of selected option and name of the select itself, if this won't help, please give us the public the link and clarify on what page your select is