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 trial
Scott Peake
17,052 PointsCombining "datalists"
I am creating a lookup for selecting from multiple datalists. One datalist will have specific clients I work with one-on-one, while the other list will have non-client-specific tasks.
<input list="clients" "jobs" name="forWho">
<datalist id="clients">
<option value="SP">
<option value="WH">
<option value="CR">
<option value="AP">
</datalist>
<datalist id="jobs">
<option value="Admin">
<option value="Break">
<option value="Personal">
</datalist>
<input type="submit">
I have two datalists, and the input line at the top. What I am wondering, is there something I can use to "concatenate" (?) the two datalist id's on the first line? (See the "goof" in the code coloring?)
I am sure there is a way to create a combined list using JavaScript, but I don't want to go that far yet. This is a very early testing model just to run a few ideas past potential users.
Thanks for the help!