Aug 21st, 2013, 10:57 PM
Hello all,
I am hoping some one can point me in the right direction here.
I have a form where I need to validate a field based on whether another field has been selected but I cant quite crack it as my jquery skills arent great.
I have a checkbox named "home_loan", if a user checks it then they need to fill out a textbox field named "buynew".
If someone coudl tell me how to modify this line to get it to work that would be fantastic.
rules.push("required,home_loan,Please chose a loan type.");
Cheers
I am hoping some one can point me in the right direction here.
I have a form where I need to validate a field based on whether another field has been selected but I cant quite crack it as my jquery skills arent great.
I have a checkbox named "home_loan", if a user checks it then they need to fill out a textbox field named "buynew".
If someone coudl tell me how to modify this line to get it to work that would be fantastic.
rules.push("required,home_loan,Please chose a loan type.");
Cheers