Js control page control hidden display of two methods

  • 2020-03-26 21:21:33
  • OfStack

Javascript controls the hiding of a page control in two ways. The difference between the two methods is whether the control still occupies space on the page after it is hidden
Method one:

Method 2:

Method 1: after hiding the page's location is still occupied by the control but does not display display=static, similar to the.net validation control
Method 2 hides the location of the page from being occupied similar to the display=dynamic of the.net validation control

Related articles: