I'm trying to add a function where you select a color of a shirt from a select-element and add it to the textarea when you press the button.

Also if anyone can give advice to do the same with a group of radio buttons, that would help a lot.

**JavaScript**

```
function addShirt() {
    buildStr += document.shirtInfo.color.value;
}

```

**HTML**

```
<form name="shirtInfo">
    <h1>Shirts</h1>
    <select name="color">
        <option>White Shirt</option>
        <option>Black Shirt</option>
        <option>Grey Shirt</option>
    </select>
    <input type="button" name="complete" value="Submit"   onclick="addShirt()"/>

    <textarea name="receipt" rows="10" cols="15"></textarea>

```