I am looking for a way to have 2 fields in form. One field will show from wordpress categories , the parent only categories. The second field will show the child categories from the parents category that user has select in first field.
Example of my categories:
Example of what i want:
Field 1 : City : “Select”
Field 2 : School: “Select”
I am using select for selecting categories but they are show all together parents and subs. I don’t want that because i have more than 100 parents and 600 sub categories so it is hard to explore all categories.