Question: Jquery. i have a form that asks for two addresses input. I am validating on the backend through ajax call. The ajax call is in

Jquery. i have a form that asks for two addresses input. I am validating on the backend through ajax call. The ajax call is in my function called AddressValidate(). As soon as I try to do two. I am not sure what I am doing wrong.

$(".validate_csz).on("change",ValidateAdress)

$(".validate_csz-second).on("change",ValidateAdress)

Address A

Street

city class=:"validate_csz"

state class=:"validate_csz"

zip class=:"validate_csz"

Address B

street

city class=:"validate_csz-second"

state class=:"validate_csz-second"

zip class=:"validate_csz-second"

ValidateAdress(){

var inputs = this;

validate_city = input[0].value

validate_state = input[1].value

validate_zip = input[2].value

ajax call

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!