If I understood properly, then you want to set the drop down list whatever you select before sending the request.
In that case you have to return back the selected option in response and do the following :
var textToFind = 'medium';//value read from scope variable
var dd = document.getElementById('formatId');
for (var i = 0; i < dd.options.length; i++) {
if (dd.options[i].text === textToFind) {
dd.selectedIndex = i;
break;
}
}
Note:Call this method after drop down is list