I have a "form field highlight" javascript that I've added to some of my
ASP.NET forms using the following syntax:
body.Attributes .Add("onClick", "highlight(even t);");
body.Attributes .Add("onKeyUp", "highlight(even t);");
Some of my forms have a great many text box controls that I want to
highlight.. I would much rather that ASP.NET do the work of looping through
all text boxes and applying these two attributes.
Can someone give me the dummies how-to? I'm using C#.
-KF
ASP.NET forms using the following syntax:
body.Attributes .Add("onClick", "highlight(even t);");
body.Attributes .Add("onKeyUp", "highlight(even t);");
Some of my forms have a great many text box controls that I want to
highlight.. I would much rather that ASP.NET do the work of looping through
all text boxes and applying these two attributes.
Can someone give me the dummies how-to? I'm using C#.
-KF
Comment