K
Ken Fine
In code, I'm adding javascript attributes to form elements on an ASP.NET
page:
body.Attributes.Add("onClick", "highlight(event);");
body.Attributes.Add("onKeyUp", "highlight(event);");
title.Attributes.Add("onClick", "highlight(event);");
title.Attributes.Add("onKeyUp", "highlight(event);");
description.Attributes.Add("onKeyUp", "highlight(event);");
description.Attributes.Add("onClick", "highlight(event);");
I would like to know how to tell the renderer to generically apply the
onClick and onKeyUp attributes to all form elements that take text, rather
than naming those form elements in code, as I do here. The functional
equivalent of :
*.Attributes.Add("onClick", "highlight(event);");
Thanks,
-KF
page:
body.Attributes.Add("onClick", "highlight(event);");
body.Attributes.Add("onKeyUp", "highlight(event);");
title.Attributes.Add("onClick", "highlight(event);");
title.Attributes.Add("onKeyUp", "highlight(event);");
description.Attributes.Add("onKeyUp", "highlight(event);");
description.Attributes.Add("onClick", "highlight(event);");
I would like to know how to tell the renderer to generically apply the
onClick and onKeyUp attributes to all form elements that take text, rather
than naming those form elements in code, as I do here. The functional
equivalent of :
*.Attributes.Add("onClick", "highlight(event);");
Thanks,
-KF