How would I go about changing a set of <Select> option tags based upon a previous <select> tag.
So if I choose 'Option 1' in select box 1, then the options in select box 2 are "A, B, C" but if I choose 'Option 2' in select box 1 then the options in select box 2 are "D, E ,F".
KQueen432
Member
7 Points
5 Posts
Changing Select Options
Feb 28, 2012 05:59 AM|LINK
How would I go about changing a set of <Select> option tags based upon a previous <select> tag.
So if I choose 'Option 1' in select box 1, then the options in select box 2 are "A, B, C" but if I choose 'Option 2' in select box 1 then the options in select box 2 are "D, E ,F".
Thanks in Advance!
Mikesdotnett...
All-Star
155645 Points
19985 Posts
Moderator
MVP
Re: Changing Select Options
Feb 28, 2012 06:05 AM|LINK
That's called a cascading dropdown. You can do it in a number of ways:
http://www.misfitgeek.com/2011/03/cascading-dropdown-with-jquery-webmatrix-version/
www.mikesdotnetting.com/Article/166/Razor-Cascading-Select-Lists-and-jQuery-Templates-A-New-Twist
Web Pages CMS | My Site | Twitter