# Chained Select menu

**URL:** <https://forum.kirupa.com/t/chained-select-menu/299088>\
**Category:** web dev\
**Created:** [October 29, 2009, 3:17pm UTC](https://forum.kirupa.com/t/chained-select-menu/299088 "2009-10-29T15:17:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![utsav](https://avatars.discourse-cdn.com/v4/letter/u/e19b73/32.png) [@utsav](https://forum.kirupa.com/u/utsav)\
**Post date:** [October 29, 2009, 3:17pm UTC](https://forum.kirupa.com/t/chained-select-menu/299088/1 "2009-10-29T15:17:32Z")

</div>

Sorry if this is posted elsewhere but i need a solution to this.

Well here it is.  
I have 2 mysql tables

1. category {catid\*,name}
2. subcategiry{id,catid\*,name}

And 2 select box in my form. 1 for category and other for subcategory.

So when I choose an option from the category select menu. (Ex. Football)  
I want the second select menu to show only the name of subcategories which fall under that category. (Ex. EPL, Primera Liga) etc.  
I need it AJAX or simple javascript based. Hope u understand what i mean. I found few tutorials but could not convert to what i needed.
