javascript - dojo CheckedMultiSelect, sorting options after using addoption method in dojo -
i have website 2 dojo checkedmultiselect fields. items in second field loaded when user selects value first checkedmultiselect field.
i'm using addoption method via ajax i'm not reloading page
l_byggnad.addoption(l_byggnadlistjson.rows[i]); and i'm removing or adding according user selection on first checkedmultiselect.
everything working fine problem new items i'm adding second checkedmultiselect field being added end of list. couldn't them sorted.
i used many sorting methods nothing affecting dropdown list when using sort on object array , calling l_byggnad.options. i'm getting sorted list html list not changing.
Comments
Post a Comment