Just Google/CP Search for 'Cascading Dropdown'.
What you are looking for is populating a second dropdown based on the value selected in first dropdown.
As such, based on tag MVC, have a look at this:
ASP.NET MVC–Cascading Dropdown Lists Tutorial [
^]
If you want to use JavaScript, you would need to use XMLHttpRequest (tradition way!):
XMLHttpRequest[
^]