Home  >  Article  >  Web Front-end  >  How to get webform server control with js script_javascript skills

How to get webform server control with js script_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:47:552175browse

To obtain server controls in asp.net webform, js scripts need to use ClientID to obtain server controls

Web frontend to obtain controls:
<%=TextBox1.ClientID %> will print out the control ID of TextBox1
Get the webform control in js script: (to achieve that when the mouse moves to the control, the color of the control turns red)

Copy code Code As follows:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn