控件后台的Enabled 与前台的 disabled

 <script>
function Check()
{
  if(Form1.Checkbox1.checked == true)
  {
    //document.getElementById("Nd2") = true;
    Form1('Nd2').disabled = false
    Form1('Yf2').disabled = false
  }
  else
  {
    Form1('Nd2').disabled = true
    Form1('Yf2').disabled = true
  }
}

<INPUT id="Checkbox1" onclick="Check()" type="checkbox" runat="server">按区间查询

Nd2.Enabled = false
Yf2.Enabled = false

 

javascript: Form1.Button6.disabled = false; Form1.Button6.style.display = 'none'; <INPUT id=Button6 style="Z-INDEX: 115; LEFT: 424px; POSITION: absolute; TOP: 352px" type=button value=2112122121 name=Button6 runat="server">

你可能感兴趣的:(JavaScript,server,input,button)