I'm working on a school project which requires developing an interactive menu. I have limited knowledge on many aspects of JavaScript and html as I've been learning it for a couple of months. I am making a uniform menu which allows the user to theoretically buy uniform items (i'm not actually adding in payment options).

I need help on being able to create a function or something similar which will display the choices you have made and also carry over the choices you made, which will result a confirm message.

![For example](https://i.stack.imgur.com/P2s9n.png)

In the above screenshot, pretend a user wanted 2 small blazers. So the user would click on small and click on enter quantity and type in 2. The user would then click on confirm order which will bring up a confirm message like

```
You have chosen to confirm 2 small sized blazers for $400. Confirm?

```

The problem is I don't know how to create this message which varies on what size and how many items a user wants.

Sample code in [jsFiddle](http://jsfiddle.net/GpLvR/): Sorry if this doesn't quite make much sense. I've tried my best at explaining my problem so I might have missed out important details. So if I did, please tell.

**HTML:**

```
    <td>Blazer (All Sizes) - $200</td>
    <td><button onclick="small()">Small</button> 
    <p><button onclick="medium()">Medium</button>  </p>
    <button onclick="large()">Large</button> </td>
    <td><button onclick="quantitynumber()">Enter Quantity</button> </td>
    <td><button onclick="confirmorder()">Confirm Order</button> 

```

**JS:**

```
var blz = 0  
function small()
  {
      blz = confirm ('You have selected size: Small. Confirm?')
  }
   function medium()
  {
      blz = confirm ('You have selected size: Medium. Confirm?')
  }
   function large()
  {
      blz = confirm ('You have selected size: Large. Confirm?')
  }

 function quantitynumber()
 {
     blz = prompt ('Enter the number of Blazer(s) to order')
     blz1 = blz * 200
        if ( blz == 1) {
    blz1 = confirm ('You have chosen to order 1 Blazer for $' + blz1 + '. Confirm?')
    }

            else if ( blz >=2  && blz <= 5) {
    blz1 = confirm ('You have chosen to order ' + blz + ' Blazers for $' + blz1 + '. Confirm?')         
    }

    else if (blz >5) {
        alert('There is a limit of 5 Blazers per customer.')
        blz = null
        blz1= null
    }
    else if (blz = isNaN || blz == '') {
        alert ('Please type in a valid number.')
    }

 }
function confirmorder()
{
    if (blz == small && blz >= 1 && blz <= 5) {
    blz1 = confirm ('You have chosen to confirm ' + blz + ' small sized Blazers for $' + blz1 + '. Confirm?')
    }

}

```