Access an asp:hiddenfield control in JavaScript

前端 未结 6 1729
南旧
南旧 2020-12-21 00:10

What is the best way to access an ASP.NET HiddenField control that is embedded in an ASP.NET PlaceHolder control through JavaScript? The Visible attribute is set to false i

6条回答
  •  天涯浪人
    2020-12-21 00:43

    Instead of making ".visible=false", change the style to "display: none;". That will render your control but make it invisible.

提交回复
热议问题