重置selectselect2下拉框为选中状态

    xiaoxiao2024-04-20  3

    重置select2下拉框为初始状态

    /*重置select2下来框*/ $("#loc_city option:first").prop("selected", 'selected') $('#loc_city').trigger('change.select2'); // Notify only Select2 of changes $("#loc_source option:first").prop("selected", 'selected'); $('#loc_source').trigger('change.select2'); // Notify only Select2 of changes

    记录一下 搞了好久了 烦死

    转载请注明原文地址: https://ju.6miu.com/read-1288165.html
    最新回复(0)