Yes, client-side validators are acutally <span tags so you should be able to
do something like:
var spans = document.getElementsByTagName("span");
for (var i = 0; i < spans.length; ++i){
var span = spans[i];
var controlToValidate = span.exclude ||
span.getAttribute('controltovalidate');
if (controlToValidate != null && controlToValidate ==
'<%=TEXTBOXNAME.ClientId%>'){
alert(span);
}
}
span will them be a DOM object which points to a valiadator for TEXTBOXNAME
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Raj" <Ra*@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
Is it possible to get the list of all the validators that are attached to
a control ( for example Textbox) using client side javascript.
Thanks.