title: How do I pop a simple alert box via AJAX?
body: <p>Here's my code in the  tag:</p>
  
  <pre><code>&lt;script&gt;
  function saveQuantity(quantity) 
  {
    $.ajax({
  
    alert(quantity);
  
    })
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and here's my HTML:</p>
  
  <pre><code>&lt;form name="frmQuantity"&gt;
   &lt;select name="owned" id="owned" onChange="saveQuantity(this.value);"&gt;
    &lt;option selected="selected" value="0"&gt;0&lt;/option&gt;
    &lt;option value="1"&gt;1&lt;/option&gt;
    &lt;option value="2"&gt;2&lt;/option&gt;
    &lt;option value="3"&gt;3&lt;/option&gt;
    &lt;option value="4"&gt;4&lt;/option&gt;
    &lt;option value="5"&gt;5&lt;/option&gt;
    &lt;option value="6"&gt;6&lt;/option&gt;
    &lt;option value="7"&gt;7&lt;/option&gt;
    &lt;option value="8"&gt;8&lt;/option&gt;
    &lt;option value="9+"&gt;9+&lt;/option&gt;
   &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Why isn't this working? What am I doing wrong?</p>