[jQuery] [validate] How to show element in its in/valid form in JS.

[jQuery] [validate] How to show element in its in/valid form in JS.


Hi.
Is there any way how in JS show particular element in its valid or
invalid state?
I have a function which validate one element, and in this function i
need to change second elements state to valid or invalid.
Thank you.
Best regards.