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

HTML

T-Shirt Info how do I convert this code into javascript?

<fieldset class="shirts"> <legend>T-Shirt Info</legend> <div class="shirt-div-box"> <div id="shirt-sizes" class="shirt-sizes"> <label for="size">Size:</label> <select id="size" name="user-size"> <option value="small">S</option> <option value="medium" selected>M</option> <option value="large">L</option> <option value="extra large">XL</option> <option value="extra large">XXL</option> </select> </div>

        <div id="shirt-designs" class="shirt-designs">
          <label for="design">Design:</label>
          <select id="design" name="user-design">
            <option hidden>Select Theme</option>
            <option value="js puns">Theme - JS Puns</option>
            <option value="heart js">Theme - I &#9829; JS</option>
          </select>
        </div>

        <div id="shirt-colors" class="shirt-colors">
          <label for="color">Color:</label>
          <select id="color">
            <option selected hidden>Select a design theme above</option>
            <option data-theme="js puns" value="cornflowerblue">Cornflower Blue (JS Puns shirt only)</option>
            <option data-theme="js puns" value="darkslategrey">Dark Slate Grey (JS Puns shirt only)</option> 
            <option data-theme="js puns" value="gold">Gold (JS Puns shirt only)</option>
            <option data-theme="heart js" value="tomato">Tomato (I &#9829; JS shirt only)</option>
            <option data-theme="heart js" value="steelblue">Steel Blue (I &#9829; JS shirt only)</option> 
            <option data-theme="heart js" value="dimgrey">Dim Grey (I &#9829; JS shirt only)</option> 
          </select>
        </div>
      </div>
    </fieldset>
  </div>               

Any hints, suggestions and comments are welcome thank you in advance for your help!!!