Dropdown

I create one dropdown and i have two taxonomy {branch,course} in course i have btech and mtech taxonomy . for our dropdown i need all branch related to btech and mtech seperatly how i do this . I am stuck over there anyone help me in this.

{{ range $value := index .Site.Taxonomies "branch" }}
                <form action="{{ .Page.Permalink }}" method="get">
                    <button type="submit" class="px-4 text-sm rounded-md  border border-white bg-white">
                        {{ .Page.Title | title }}
                    </button>
                </form>
                {{ end }}

that code is for accessing all branch rather then accessing only perticular for btech and mtech