Validation on a class

Hi,

Is there a way to add validation rules to the corresponding input element based on a class, and if it is possible, can you provide me an example?



1 Reply

SU Sridurgha Uthayakumaran Syncfusion Team July 13, 2018 04:14 AM UTC

Hi Lajos, 

Thanks for your interest in Essential JS 2 and sorry for the delay. 

No, it is not possible to add the validation rules to corresponding input element based on class. The form validation method is name attribute based.  

We have created a simple sample and validated an element based on name attribute and check the class name in the custom function. Please find the below link for further details. 


Please let us know if you require any further assistance on this. 

Regards, 
Sridurgha U 


Loader.
Up arrow icon