title: simple AJAX dropdown
body: <p>I have this ajax code for getting the current selection, so I can later call database with php <code>GET</code>. Firebug error:</p>
  
  <blockquote>
    <p>Missing ) after argument list -"success":function(data){</p>
  </blockquote>
  
  <p>Any ideas?</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      $("#select").change(function(){
          $.ajax(
              "file.php?selected=" + $(this).val(),
              "success":function(data){
                  $("#results").html(data);
              }
          )
      })
  });
  &lt;/script&gt;
  &lt;select id="select"&gt;
  &lt;option&gt; something &lt;/option&gt;
  &lt;option&gt; something2 &lt;/option&gt;
  &lt;option&gt; something3 &lt;/option&gt;
  &lt;/select&gt;
  
  &lt;?php
  
  //echo $_GET['selected'];
  
  ?&gt;
  
  &lt;div id="results"&gt;&lt;/div&gt;
  </code></pre>