0

You will understand in description

Hey , guys In my coded form below , there is an option for selecting country and state , so my question is that how I can select State for I selected country in earlier option . E.g. if I select country India then only Indian state should appear in state option . And vice versa. https://code.sololearn.com/W2O91UK5eJ4q/?ref=app

21st Sep 2020, 5:37 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
6 Answers
+ 4
make objects of countries with its state names as an array. object of key-value pairs (where key is the country name and its values are states name) : example: countries = { 'India' : { 'Maharashtra', 'Rajasthan', 'Assam' }, 'Japan' : { 'Tohoku', 'Kanto', 'Chubu' } }
21st Sep 2020, 6:19 AM
minirkk
minirkk - avatar
+ 2
Thanks Ashirvad Nair , it works , only takes input doesn't submit anywhere ...
24th Sep 2020, 4:41 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
ThanksRKK
21st Sep 2020, 6:48 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
" NO " bro Ashirvad Nair submit button doesn't have any link go anywhere😁 . One important thing that files (photo & sign) are required fields and you can't fill it by sololearn finally your is incomplete so it doesn't submit . I think you will understand 😊
24th Sep 2020, 1:28 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Your code seems nice... But is it a woking..? Or what can be done to make it fully functional?
24th Sep 2020, 3:34 AM
Ashish Kumar
Ashish Kumar - avatar
0
When i am clicking on submit button then it took me to youtube
24th Sep 2020, 12:50 PM
Ashish Kumar
Ashish Kumar - avatar