title: ajax only works once then stops after click
body: <p>I am trying to load the next set of data and then remove the data after the ajax call. But I only got the ajax to work once. After clicking "get more quotes", nothing happens.</p>
  
  <p>Site: <a href="http://kdevs.site40.net/#more" rel="nofollow">http://kdevs.site40.net/#more</a> (Click get more quotes)</p>
  
  <p>Ajax: </p>
  
  <pre><code> function getQuotes(start, limit) {
              //Clear the recent list element
              $(".recent-list").html("");
              $.ajax({
  
                url: "quotes.php?start=" + start + "&amp;limit=" + limit,
                success: function (data) {
                  ata = jQuery.parseJSON(data);
                  console.log("success");
                  //Data should now be a javascript array of objects.
                  for (i = 0; i &lt; data.length; i++) {
                    var newElem = jQuery("&lt;li&gt;&lt;/li&gt;").attr('id', data[i].id).addClass('quote-wrap-group');
                    newElem.append("&lt;div class='quote'&gt;&lt;p&gt;" + data[i].quote + "&lt;/p&gt;&lt;/div&gt;");
                    $(".recent-list").append(newElem);
                  }
                }
              });
            }
  
                 $("#more").click(function () {
                   var currentIndex = 0;  
                   getQuotes(currentIndex = currentIndex + 10, 10);
                   currentIndex += 10;
                 });
  </code></pre>
  
  <p>PHP returns json:</p>
  
  <pre><code>&lt;?php
  
      require("inc/connect.php");
      $start = $_GET['start'];
      $limit = $_GET['limit'];
  
      $sql = "SELECT * FROM entries ORDER BY id DESC LIMIT ".$start.", ".$limit;
      $result = mysql_query($sql, $link) or die("Error in query: ".mysql_error());
  
      $data = array(); 
  
      while($row = mysql_fetch_array($result)) {
          array_push($data, $row);
      }
  
      echo(json_encode($data));
  ?&gt;
  </code></pre>
  
  <p>I know it's not the PHP because: <a href="http://kdevs.site40.net/quotes.php?start=0&amp;limit=10" rel="nofollow">http://kdevs.site40.net/quotes.php?start=0&amp;limit=10</a> works.</p>
  
  <p>What am I doing wrong?</p>