如果select中的第一个option,就是你的默认值,则使用:
document.getElementById('selectId').selectedIndex = 0;
如果select中的非第一个option,是你的默认值,则使用:
var options = document.querySelectorAll('#selectId option');
for (var i = 0, l = options.length; i < l; i++) {
options[i].selected = options[i].defaultSelected;
}
参考:
https://stackoverflow.com/questions/49588862/how-to-reset-values-of-select-dropdown
https://stackoverflow.com/questions/16913094/reset-select-value-to-default