title: jQuery check if option val and selected, do math and alert
body: <p>I need to do some calculations based off shipping options.  For this example I simply just want to <code>alert()</code> the new price.  I want to add 6% to the selected charge and <code>alert()</code> it.  I cannot really modify the below html but it adds <code>selected</code> if one of the options is selected:</p>
  
  <pre><code>&lt;select name="ShippingSpeedChoice" onchange="this.form.submit();"&gt;
  &lt;option value="0"&gt;PLEASE SELECT&lt;/option&gt;
  &lt;option value="701"&gt;UPS Ground $9.90 &lt;/option&gt;
  &lt;option value="703"&gt;UPS 3Day Select® $30.88 &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>So if option value 701 is selected I would want an alert that displays the total of 9.90 * 1.06....10.49.  Currently it displays it no matter what is selected.  (ie <code>&lt;option value="703" selected&gt;UPS 3Day Select® $30.88 &lt;/option&gt;</code> the alert will popup for this and it shouldn't).  Any ideas?</p>
  
  <pre><code>$(document).ready(function() {
    if ($("option[value='701']:selected")) {
      $("option[value='701']").each(function () {                                           
          var isthePrice = $(this).text().replace("UPS Ground $", "");
          var parsedShip = parseFloat(isthePrice);
          var doMath = parsedShip * 1.06;
          alert(doMath.toFixed(2) + " "); });
    }                        
  });
  </code></pre>