JQuery .Show() doesn't work with server control?

这一生的挚爱 提交于 2019-12-01 12:32:32

visible="false" means it doesn't even get rendered into the page, so your selectors aren't finding any elements.

Instead of visible="false" use style="display: none;" to hide the elements, yet still render them in the page.

If you set visible = "false" on a server control, then the control is not even rendered to the browser. Set display: none instead and then show the control with display: block in your javascript.

Remove the visible=false from the server control as this stops the control being rendered to the page, either set a CSS style with display: none or hide the required controls in javascript.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!