How does the DOM object SELECT, in memory set the specific option to the selected value and then load it into the page?

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?

Feb.17,2022

there should be no problem looking at the statement. When confirming the operation, whether there is an element of $(item) on the page

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37e66-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37e66-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?