Home >Web Front-end >JS Tutorial >Solution to the problem of dynamically generating select tags in jquery html_jquery

Solution to the problem of dynamically generating select tags in jquery html_jquery

WBOY
WBOYOriginal
2016-05-16 17:13:461379browse

Today I use jquery and json to get a list from the background, and prepare to display it in the front desk with a dynamically generated select tag...

The result cannot be displayed, but dynamically generated input and a are all ok

Finally, I casually typed a bunch of 11111111111111111111111 in front of select

Then select appeared

I suspected it might be related to spaces, so I added a   in front of select, but nothing happened

After that, I tried various methods, but it still didn’t work.

Then I switched from Sogou browser to IE and FIREFOX.

No problem.

Then I found out that it was a browser problem. .... I wasted more than 3 hours and I am speechless

Sogou Browser is also a bit tricky.... Hey

I will definitely not go to the current platform in the future.

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