sort items in a dropdown list without the first item

后端 未结 6 1018
粉色の甜心
粉色の甜心 2021-01-04 02:59

I have the following code to sort the items in a dropdown list:

function sortDropDownListByText(selectId) {
    $(selectId).html($(selectId + \" option\").so         


        
6条回答
  •  -上瘾入骨i
    2021-01-04 03:57

    Theoretically, I would approach the problem by removing the "Please select" entry, sorting the list, then append it again, once the sorting is done

提交回复
热议问题