because my select is checked out from the database, I first spell the checked list items into strings in the background, and then convert the strings into DOM objects with jquery in the foreground, and then load them into the specific corresponding items on the page. Now, when viewing or modifying, because this list item actually has a value, after reading the list item data, you need to set the original value to be the selected item.?. Here"s what I wrote.
if (rowObj.tsxh != 0) {
$(item).find("option[value=" + rowObj.tsxh + "]").prop("selected", true);
}
// $(item)select
// rowObj.tsxh
after I set this up, I added this select to the page and did not set the specific item to be selected as I thought. What is going on?
how can this effect be achieved?