Link to home
Start Free TrialLog in
Avatar of Pete Winter
Pete WinterFlag for United Kingdom of Great Britain and Northern Ireland

asked on validate form on class click

I am using this form validation script:

Can you please help me find how I change my code to submit the form on click of element with the class name of "csaf-stage1".

$(document).ready(function() {
		// live: 'enabled', // Default value
		trigger: 'input change keyup',
		fields: {
			default_deposit_amount: {
                validators: {
                    greaterThan: {
                        value: getDepositAmount,
                        message: 'The higher deposit must be 5% or greater'
	}).on('success.form.fv', function(e) {
	// success code here

Open in new window

Avatar of Leonidas Dosas
Leonidas Dosas
Flag of Greece image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete Winter


Thanks, but my form is not validating so I must have done something wrong if you can please check:


I basically want the form to submit when the "Next Step" text or if the "PURCHASE WITH FINANCE - CSAF" bar is clicked. So multiple trigger. Also you will notice the fields have live validation if you type in the loan value field.

Any idea what I am doing wrong?
Thanks, but all I need to do was to add the below to my original code.

$( ".csaf-stage1" ).click(function() {
I hope that someway I find a solution to your problem. I search a lot your code but my code based at this link.
Thanks a lot.