title: How do I detect in jQuery (AJAX) when a drop down item is selected on my HTML/PHP page?
body: <p>How do I detect in jQuery (AJAX) when a drop down item is selected on my HTML page so I can refresh the page? Here is the code for my drop down:</p>
  
  <pre><code>&lt;select id="dropdown"&gt;
    &lt;option value="test1"&gt;test1&lt;/option&gt;
    &lt;option value="test2"&gt;test2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>And here is code I have been using to detect a click... how can I get it to detect a change in my drop down?</p>
  
  <pre><code>    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
      // This is our actual script
      $(document).ready(function(){
          $('#dropdown').click(function(){
  
                  $.ajax({
  
                      location.reload();
  
                  });
  
              return false;
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>And also, bonus question, right before <code>location.reload();</code> how can I set a <code>$_SESSION</code> variable in PHP of the select drop down value?</p>