Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get City value in Submitting form #1

Open
shubhamalive opened this issue Feb 16, 2020 · 3 comments
Open

Can not get City value in Submitting form #1

shubhamalive opened this issue Feb 16, 2020 · 3 comments

Comments

@shubhamalive
Copy link

shubhamalive commented Feb 16, 2020

Hello, Thanks for the code. I tried this code in a form but all i can get is State name in POST or GET, no idea how to get city name as well in another variable. hope you can help.
dropdown

@ayush7ad6
Copy link

I have the same query. Hope, you will help us :)

@dipantan
Copy link

set the id of second select and get via jquery

@uiyash
Copy link

uiyash commented Mar 29, 2022

                            <label for="state">State : <span style='color:red'>*</span></label>
                            <div class="form-select">
                                <select onchange="print_city('state', this.selectedIndex);" id="sts" name="state"
                                    class="form-control" required>
                                </select>
                                <span class="select-icon"><i class="zmdi zmdi-chevron-down"></i></span>
                            </div>
                        
                        
                            <label for="city">District : <span style='color:red'>*</span></label>
                            <div class="form-select">
                                <select id="state" class="form-control" name="district" required></select>
                                <script language="javascript">
                                    print_state("sts");
                                </script>
                                <span class="select-icon"><i class="zmdi zmdi-chevron-down"></i></span>
                            </div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants