How to use jQuery for client side validation


#1

Hi Team,

I am using adoras version 2.0.3.
Can someone please suggest me how to write jQuery events like click or keyup or onFocus in Edoras formmodel.
I have already tried to add this in html component or in custom.js but nothing worked for me.
Only alert is getting fired on document.ready event but function like click and keyup is not working in same.

Piece of code that I used is as below:-

Please advice if there is anyOther way to do the same.

Thanks in advance.

Rohit Mahadik


#2

Hi Rohit,
You should use the named validations support, the function you add will be called on each change in the component.
Best regards
Javi