html select option changes on select change

One for categories, and one for types. Each categories should have different types. When the category is selected, the option values in the select tag for types will change accordingly.