日期:2014-05-16  浏览次数:20408 次

急!新手求助如何用JS新建一个空的下拉框
如题!新手求指导!

------解决方案--------------------
HTML code

<head runat="server">   
    <script src="jquery.js" type="text/javascript"></script>  
    <title></title>  
    <style type="text/css">
    
    </style>

    <script type="text/javascript">
        window.onload = function(){
            document.getElementById('div-new-select').innerHTML = 
                '<select id="new-select"></select>';
        }
    </script>  
 
</head>
<body>
    <span id="div-new-select"></span>
</body>