Home >Web Front-end >JS Tutorial >How to get webform server control with js script_javascript skills
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)