title: jquery sortable update can work only one time?
body: <p>Need a way to make element show in the div,but when i use ajax send data to list.php.it can not work?</p>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  mysql_connect('localhost','user','password');
  mysql_select_db('fruit');
  $days = 3;
  for($i=1;$i&lt;=$days;$i++)
  {
  ?&gt;
  
  
  
  &lt;ul id="sortable"&gt;
      &lt;?php
      $sql = "select * from menu where columnNo = '$i' order by orderNo ASC";
      $result= mysql_query($sql);
      //$row=mysql_fetch_assoc($result);
      //print_r($row);
      while($row=mysql_fetch_assoc($result))
      {
          echo '&lt;li id="list_' . $row['id'] . '"&gt;' . $row['title'] . "&lt;/li&gt;\n";//
      }
  
      ?&gt;
      &lt;/ul&gt;
  
  &lt;?php
  }
  ?&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(function(){
       $("ul").sortable({
          connectWith:"ul",
          update:function()
          {           
              serial = $("ul").sortable("serialize");
              $.ajax({
                  data: serial,                
                  url:"list.php",
                  type:"post",
                  error:function(){
                      alert("Error!");
                  },
                  success:function(data){
                      $("#serverResponse").html(data);
                  }
              });
              //alert(serial);
          }
       });
  
      $("#sortable").disableSelection();
  
  
  });
  </code></pre>
  
  <p>list.php</p>
  
  <pre><code>&lt;?php
  
  mysql_connect('localhost','root','xingxing');
  mysql_select_db('fruit');
  
  $list = $_POST['id'];
  
  for($i=0;$i&lt;count($menu);$i++)
  {
  
  
      $sql =  "update menu set orderNo= '$i' where id = '$menu[$i]'";
      mysql_query($sql);
  }
  
  ?&gt;
  </code></pre>
  
  <p>but,the list.php did't work. i don't know why.could anyone can help me ? THX!</p>