how to hide a panel in javascript

后端 未结 2 1134
滥情空心
滥情空心 2021-01-24 06:11

What is the best approach to show and hide an asp panel which is containing other controls like textbox and label controls

2条回答
  •  -上瘾入骨i
    2021-01-24 06:29

    Can you try

    document.getElementById( 'Panel1ClientId' ).style.display = 'none'; // to hide
    

    and

    document.getElementById( 'Panel1ClientId' ).style.display = 'block'; // to show
    

    ?

提交回复
热议问题