Solution: Put the statement of the selected option into setTimeout, for example:
setTimeout(function() {
var selSorts = $("select[id^='" controls.selsort "']");
$.each(selSorts, function(index, sort) {
var ope = $(sort).find("option[value='" arrSort[index] "']");
if (ope.length > 0)
ope[0]. selected = true;
});
}, 1);
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn