Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery selectbox给出了IE 7的错误_Jquery_Html - Fatal编程技术网

Jquery selectbox给出了IE 7的错误

Jquery selectbox给出了IE 7的错误,jquery,html,Jquery,Html,我正在使用下面的代码,并且它在除IE 7之外的所有浏览器上工作。当选项数超过1900个选项时会发生此错误。任何人都有解决方案。当我单击某个值时,它会给我一个javascript错误(此页面上的脚本导致Internet Explorer运行缓慢).谢谢你的帮助.谢谢.这是我使用的代码 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Conte

我正在使用下面的代码,并且它在除IE 7之外的所有浏览器上工作。当选项数超过1900个选项时会发生此错误。任何人都有解决方案。当我单击某个值时,它会给我一个javascript错误(此页面上的脚本导致Internet Explorer运行缓慢).谢谢你的帮助.谢谢.这是我使用的代码

   <html xmlns="http://www.w3.org/1999/xhtml">

   <head>

           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

           <link href="http://select-box.googlecode.com/svn/tags/0.2/jquery.selectbox.css"type="text/css" rel="stylesheet" />

           <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

           <script type="text/javascript" src="http://select-box.googlecode.com/svn/tags/0.2/jquery.selectbox-0.2.min.js"></script>

         <title>Untitled Document</title>

      </head>



      <body> 

       <SCRIPT Language="JavaScript">

           <!-- 

           document.write('<select id="language">')

           for(i = 0; i < 2500; i++){

           document.write('<option value="javascript">'+i+'</option>') 

             }

            document.write('</select>')

           //-->

           </SCRIPT>

         </body> 

     <script type="text/javascript">

         $(function () {

         $("#language").selectbox();


       });

   </script>



    </html>

无标题文件
$(函数(){
$(“#语言”)。选择框();
});

您是否尝试过为号码输入文本?我看不出滚动2500个数字有什么意义。。。当然,您可以使用两个选项,一个用于前1250个选项,另一个用于其他选项