select2 使用 text 赋初始值 var txt='Select2' $("#selectID").find(':contains(' + txt + ')').attr('selected', true).trigger('change');