WordPress: Show subcategories after the category is selected

Here’s the scenario: I’m using WordPress categories as states and child-categories as cities. On the front-end part, i’m showing a <select> through wp_dropdown_categories with the states only.

Is it possible to, when i change the state, it creates another <select> tag below with the subcategories to it’s relative parent?

Related posts

Leave a Reply

1 comment