title: How to call sortable function with dynamic ul id?
body: <p>I have multiple ul and and I make ul id dynamic like:</p>
  
  <pre><code>&lt;ul id='sortable1'&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul id="sortable2"&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul id="sortable3"&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;
  
  $( function() {
              $( "#sortable1" ).sortable({
                  axis: 'y',
                  update: function(event, ui) {
                      var unit_list_sortable = $(this).sortable('toArray').toString();
                      alert(unit_list_sortable);
                      $.ajax({
                          url: 'addPhaseUnits.php',
                          type: 'POST',
                          data: {unit_list_sortable:unit_list_sortable,action:'unit_sort_num'},
                          success: function(data) {
                          }
                      });
                  }
              });
          });
  </code></pre>
  
  <p>How to make this function sortable? Ul is is working in loop and that id is coming from database.</p>