Finding the Control associated with ASP.NET validator using JQUERY or simple Javascript -
I have pages with some text boxes and their related validated (ASP.N.T. Vedic) pages.
And obviously I can validate each validator from javascript by calling the function
Page_ClientValidate ("myvalidators")
< P> Where myvalidators are the name of my validators group Similarly I can validate a specific validator using
the validator (Page_modiatrics [0]);
who only checks that specific validator
But my question is, how can I get the control (textbox) associated with that specific verifier or its Can i find out
This means that there is a task that can return all control with a failed verifier.
Or more explicitly, the function should return the collection object of control where the verifier has failed to support.
More details added
My scenario is to highlight the parent disk of the textbox where the verifier was unsuccessful. So if I get a textbox control object or control array, then I can take every single parent unit out of it and highlight it.
The Page_Validators array gives the same metadata that we get in the custom verification function. This means that you can get to the respective control identifier in this way Page_Validators [0] .controltovalidate
Comments
Post a Comment