Jquery HTML dynamic generation select tag out of the problem solution


Today, with jquery, json is used to get a list from the background, ready to be displayed in the foreground with a dynamically generated select tag…

The result cannot be displayed all the time. Dynamically generated input,a is all right

Finally randomly in front of the select hit a bunch of 1111111111111111111111111

And then the select appears

Suspicion may have something to do with whitespace, adding a   before the select, no response

Then I tried all kinds of methods, but it didn’t work

From sogou to IE,FIREFOX,

No problem

Only to discover that it was a browser problem… Wasted more than three hours, speechless

Sogou browser is also more pit ah… ah

Never go to the front desk