Want to make the visibility true from client side of the control which made invisible from server side

前端 未结 3 1934
庸人自扰
庸人自扰 2021-01-20 17:33

I have a text box in a page. Whose visibility is set false from the server side. Now I want to make it visible from client side by using java-script. (Any post back or parti

3条回答
  •  半阙折子戏
    2021-01-20 17:43

    set the style["visibility"] = "hidden" on the server side. I.E. in c# btnSave.style["visibility"] = "hidden"; It will get the button rendered and therefore on the client side this element is accessible. On the client side change the visibility style to visible.

    $('#btnSave).css("visibility", "visible");
    

提交回复
热议问题