我正在使用jQuery在页面加载时动态填充一些级联下拉控件.但是,当页面加载时,我的三个选择框中只有两个被识别.
请考虑以下HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
xmlns="http://www.w3.org/1999/xhtml"> <head>
<title></title> </head> <body>
<select id="one" />
<select id="two" />
<select id="three" /> </body> </html>
Run Code Online (Sandbox Code Playgroud)
当我在IE,Firefox或Chrome中打开此页面时,只会呈现两个选择框.三个中只有两个出现在DOM中(使用萤火虫或类似物),但这三个都出现在源中.
我可以做些什么来显示所有控件?