WOW!!
Not only do i think this is going to work perfectly, but it's also easier to implement than i was expecting! The .
addCssClass
() is exactly what i was looking for. I scoured through the online documentation but wasn't able to find any reference to any methods or properties that dealt with the control's css.
The only real change that i made was to the validation function. Since this will often be used in a webcontrol that could be included multiple times on the page i made some minor edits to solve the issue of having the client-side validation function written to the browser multiple times w/ the same name. Here is the validation function that I'm most likely going to use:
The CSS class is simply:
And since my client-side function has a dynamic name, this name has to be set dynamically as well which is no problem.
Thanks so much!
-Mark