Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialUnsubscribed User
2,075 PointsCreating Dynamic dropdownfor
Whats the best approach on removing selected list items. IE I have multiple fields that use the same list of names. When a name is selected I want the next drop down to not have that name.
2 Answers
Steven Parker
231,236 PointsAre you doing this on a web page? If so, this would probably need to be done in JavaScript inside the browser and not in the C# (or Razor) code.
Unsubscribed User
2,075 Pointsinternal site and more than willing to do it in jscript. Would you suggest data dictionary and an ajax call?
Steven Parker
231,236 PointsIf you're just excluding items from the default list, it doesn't sound like you'd need anything additional from the server. So AJAX would probably not be necessary.