textbox.style.display="";  显示
textbox.display="none"; 不显示

解决方案 »

  1.   

    不好意思textbox.display="none"; 不显示--->textbox.style.display="none"; 不显示
      

  2.   

    if you are using ms vs.net,you can use the panel control.
    put the textbox to the panel.
    if the checkbox is choosed,set the panel property visible true,or set it false.
      

  3.   

    但是这样的话,下半部分的textbox在隐藏的情况下,也会占页面的空间吧?
    我想在checkbox没有选中的情况下,下面的那些textbox不占页面空间
      

  4.   

    如 yistudio(绿荫) 所说,把需要一起隐藏的textbox放到一个panel里头,完美方案