For the scope of the semantic interface, you should refer to the manual here: pop-up behavior . This tells us to make the following call:
$('#dropdown').dropdown('set selected', value);
Or pass in an object (perhaps useful for multiple choice or for developer preference):
$('#dropdown').dropdown({'set selected': value});
Answer without frame (before the question was edited for a specific structure)
If the say dropdown id is on the selection list, you can do:
$('#dropdown').val();
To set a value, say the option has a value of a , you can do:
$('#dropdown').val('a');
I suggest reading the jQuery .val () page.
JSFiddle example: http://jsfiddle.net/vo9kpsry/1
Cymen
source share