title: jQuery Post Returning Nothing
body: <p>I created a simple jQuery post that returns data every time an user types in a character in an input field. The problem is that it is not working. Firebug returns no errors. When I type in a keyword FireBug Net shows no requests made. My code is almost a cut and paste from another piece of code that does work. I have no idea what to do and this is not the first time something like this has happened.</p>
  
  <p>Here is the original file.</p>
  
  <pre><code>&lt;input type="text" id="search_tags" /&gt;
  
  &lt;div id="tag_results"&gt;&lt;/div&gt;
  
    &lt;script type="text/javascript" &gt;
  
    $(document).ready(function() {
  
    $('#search_tags').keyup(function() {
      var search_term = $(this).val();
  $.post('ajax_file.php', {search_term: search_term}, function (data) {
  $('#tag_results').html(data);       
      });     
  });
  
    $('#search_tags').bind('keydown', function(e) {
      if(e.keyCode==13){
      e.preventDefault();
      };});  
      });
  
    &lt;/script&gt;
  </code></pre>
  
  <p>Here is the ajax file.</p>
  
  <pre><code>$search_term = sanitize($_POST['search_term']); 
  
      if (!empty($search_term)) {
  
  $search = mysql_query("SELECT DISTINCT `tag_name` FROM `tags` WHERE `tag_name` LIKE 
  
      '%$search_term%' LIMIT 0, 15");
  
  $y = 1;
  
           while ($results_row = mysql_fetch_assoc($search)) 
  
          {
  
          echo '&lt;br&gt;&lt;br&gt;' . $results_row['tag_name'] . '&lt;br&gt;&lt;br&gt;&lt;hr&gt;'; 
  
                      $y++;
  
               }}
  </code></pre>