如何在javascript中隐藏面板
显示和隐藏包含其他控件(如textbox和label控件)的asp面板的最佳方法是什么如何在javascript中隐藏面板,javascript,asp.net,Javascript,Asp.net,显示和隐藏包含其他控件(如textbox和label控件)的asp面板的最佳方法是什么 document.getElementById( 'Panel1ClientId' ).style.display = 'none'; // to hide 及 你能试试吗 document.getElementById( 'Panel1ClientId' ).style.display = 'none'; // to hide 及 ?使用jQuery,您只需切换Visibility: $('#<%
document.getElementById( 'Panel1ClientId' ).style.display = 'none'; // to hide
及
你能试试吗
document.getElementById( 'Panel1ClientId' ).style.display = 'none'; // to hide
及
?使用jQuery,您只需切换Visibility:
$('#<%= YourPanel.ClientID %>').hide();
$('#<%= YourPanel.ClientID %>').show();
$('#<%= YourPanel.ClientID %>').hide();
$('#<%= YourPanel.ClientID %>').show();