Calculate a percentage discount and how much is saved in javascript
<p>I'm having trouble calculating a 10% discount and then showing how much was saved in <code>#value3</code>. Code: </p>

<pre><code>function priceCalc() {
  var price = $("#pricing").val();
  var discount = 10; // should be percentage

  var total = price - discount;

  var savings = ?

  $("span#value1").html(price);
  $('span#value2').html(total);
  $('span#value3').html(savings);
  }

  $("select#pricing").change(priceCalc);

  priceCalc();
</code></pre>
