such as code two button a city a province code to achieve the click of the city when the province and its own country at the same time click the province appears the state is connected to the database output value. The problem is that the values are not categorized, which means that the provinces are all out, whichever country you choose. That is, the normal is: China-Liaoning now may be: China-New York, a judgment statement how to change, in the original code added JS jquery can but the original judgment statement does not move. Is there a meeting?
Reply to discussion (solution)
Do you have a database in which New York belongs to China?
Do you have a database in which New York belongs to China?
I'm just trying to give you an example. Each region has a parent_one_id and parent_tow_id country parent_one_id is 99999 that is the first level province is the ID of the country, such as China's ID is 1 parent_one_id is 99999 Liaoning ID Random parent_one_id is 1 with parent_one_id and parent_tow_id divide three level is this
The parent_one_id in Dandong is the Liaoning ID is 3 grade?
Do you have a database in which New York belongs to China?
Just the one that you just responded to is a previous picture of a database you can read it.
The parent_one_id in Dandong is the Liaoning ID is 3 grade?
What are you talking about? It's not a three-tier division, it's judging the state of the country it's showing. The following subcategories are now all displayed
This is not the problem of JS, but the problem of PHP!
PHP provides redundant data, how can js know?
This is not the problem of JS, but the problem of PHP!
PHP provides redundant data, how can js know?
Mainly I also do not use JS Ah PHP is to provide redundant data so only to add judgment ah problem is in addition to judge
You're not going to let PHP provide the extra data!
You're not going to let PHP provide the extra data!
So? How can I tell you how you have lied to me about your money every time you answer? Did I mess with you?
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
Open source and service delivery is not the same thing
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
Open source and service delivery is not the same thing
So I do not understand, I do this is to cheat your labor results. Haha actually if really will who want to ask this, in this death ah. You all work 7 8 years and 10 years of experience. For starters, it's not a two-sentence principle you can understand. Instead of confusing the problem.
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
Open source and service delivery is not the same thing
So I do not understand, I do this is to cheat your labor results. Haha actually if really will who want to ask this, in this death ah. You all work 7 8 years and 10 years of experience. For starters, it's not a two-sentence principle you can understand. Instead of confusing the problem.
An exclamation point, you're not too sensitive. It will be better to learn first.
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
Open source and service delivery is not the same thing
So I do not understand, I do this is to cheat your labor results. Haha actually if really will who want to ask this, in this death ah. You all work 7 8 years and 10 years of experience. For starters, it's not a two-sentence principle you can understand. Instead of confusing the problem.
An exclamation point, you're not too sensitive. It will be better to learn first.
Yes, yes, I find you really knowledgeable about what you're saying.
You're not going to let PHP provide the extra data!
You should be in the open-source thinking to answer how this.
Open source and service delivery is not the same thing
So I do not understand, I do this is to cheat your labor results. Haha actually if really will who want to ask this, in this death ah. You all work 7 8 years and 10 years of experience. For starters, it's not a two-sentence principle you can understand. Instead of confusing the problem.
An exclamation point, you're not too sensitive. It will be better to learn first.
Yes, yes, I find you really knowledgeable about what you're saying.
It's good to find out.
Are you a woman?
Are you a woman?
Weak weak question, you are really to ask questions?
Direct Id= (the parent of the selected city), gets the province.
Are you a woman?
Weak weak question, you are really to ask questions?
What do you say? In fact, I really did not do, so just to ask
Direct Id= (the parent of the selected city), gets the province.
What do you mean, the parent of the chosen city?
Direct Id= (the parent of the selected city), gets the province.
What do you mean, the parent of the chosen city?
If you have selected Wuhan, corresponding to an ID, according to this ID to find out the corresponding parent of this ID.
The data output should be controlled in PHP and should not be judged after getting PHP data.