Today, because I have a project that requires dynamic operation of select selection habits, I searched it on Baidu, and there were quite a lot of results. I tried one of them and found that it could not be used. I opened the second and third ones and found that they were all the same, and then I did some research on my own. Just a moment
I just need to judge whether the text is the same. If I want to judge whether the values are the same
That’s it. I saw this code on the Internet
It feels feasible, but the operation was not successful
What I wrote is relatively simple. I wasn’t planning to post it at first, but I spent a lot of time on it. I sent it to others and also kept it for myself.