[jQuery] Dynamic Form Validation?

[jQuery] Dynamic Form Validation?


Hello, anyone has idea how to do dynamic form validation?
e.g. using http://bassistance.de/jquery-plugins/jquery-plugin-validation/
<input name="t1" type="text" />
<input name="t2" type="text" />
I only want to check for required field for t2 ONLY if t1 is equal to
some value
e.g.
If t1 = "test", then t2 cannot be null, else never mind abt t2
has any idea?