📜  select2 选择值不变 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:59.545000             🧑  作者: Mango

代码示例1
any .val() updates need to be followed by
$('#unit').val('21'); // Select the option with a value of '21'
    $('#unit').trigger('change'); // Notify any JS components that the value changed