document.getElementById('DropDownList1').options.length=0对不?

解决方案 »

  1.   

    jQuery("#DropDownList1 option").remove()也不行的话,只能说是你的ID的问题
      

  2.   


    var ddlid = '<%=DropDownList1.ClientID %>';
    document.getElementById(ddlid).options.length = 0;服务器控件你得用ClientID来获取
      

  3.   

    jQuery("#DropDownList1 option").remove()
      

  4.   

    document.getElementById('<%=DropDownList1.ClientID %>').options.length=04楼说的对,忘了这个地方了!
      

  5.   

    $("#<%=DropDownList1.ClientID %>").emty();
      

  6.   

    正解,但我和你的写法不一样$("option","#DropDownList1").remove();