How to show cities according to the state in Form using Javascript? [closed]

Question

I am working on the Contact Form 7 and I want to show the cities according to state in contact form 7.

I have also used the plugin but it is not working according to the condition and I don’t want the country field in that. That’s why I am trying my own code.

I cant ask this question in Contact Form 7 Forum because this is developer need and it requires some JavaScript knowledge.

My Code:

[select* your-state first_as_label "Select Your State*" "Andaman and Nicobar Islands" "Andhra Pradesh" "Arunachal Pradesh" "Assam" "Bihar" "Chandigarh" "Chhattisgarh" "Dadra and Nagar Haveli" "Daman and Diu" "Delhi" "Goa" "Gujarat" "Haryana" "Himachal Pradesh" "Jammu and Kashmir" "Jharkhand" "Karnataka" "Kerala" "Ladakh" "Lakshadweep" "Madhya Pradesh" "Maharashtra" "Manipur" "Meghalaya" "Mizoram" "Nagaland" "Odisha" "Puducherry" "Punjab" "Rajasthan" "Sikkim" "Tamil Nadu" "Telangana" "Tripura" "Uttar Pradesh" "Uttarakhand" "West Bengal"]

[select* your-city first_as_label "Select Your City*"]

I have the cities list: https://github.com/ajayrandhawa/Indian-States-Cities-Database

Any help is much appreciated.

0
Rahul Kumar 2 months 0 Answers 18 views 0

Leave an answer