title: Javascript Online Quote Function
body: <p>I'm looking to create an online quote based on two variables.</p>
  
  <p>The user needs to enter a postcode, and then select an item from a dropdown (1, 2 or 3). Each drop down has a different cost (£10.00, £20.00 and £30.00).</p>
  
  <p>The user must enter their postcode, select 1/2/3 and then press "Get Quote". </p>
  
  <p>If their postcode does not start with a B followed by a number, then text must appear informing that we do not deliver to this area. If the postcode is within B1-B99 then text must appear saying the cost is £10/£20/£30 dependent on which dropdown item they have selected.</p>
  
  <p>I have managed to get the drop down and price alert to work but I am unsure how you integrate the postcode function above this (also I don't want an alert I want the cost to appear underneath the button).</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="quote" style="padding:5%;"&gt;
  Gain an online quotation for your skip!&lt;/center&gt;
  &lt;form name="priceCalc" action=""&gt;
  &lt;input class="form-control input-box" id="postcode1" type="text"            name="postcode" placeholder=""&gt;
  &lt;select name="Product"&gt;
  &lt;option value="Please Select"&gt;Please Select&lt;/option&gt;
  &lt;option value="10"&gt;1&lt;/option&gt;
  &lt;option value="20" &gt;2&lt;/option&gt;
  &lt;option value="30"&gt;3&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type="button" value="Get Quote" onclick="price();"&gt;&lt;br&gt;
  &lt;/form&gt;
  &lt;script&gt;
      function price() {
      var Amt = document.priceCalc.Product;
      var price = Amt.value;
      alert(price);
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated, I am no Javascript expert but this one is bugging me! Thanks</p>