title: append ajax-jquery data into dropdownlist in cakephp
body: <p>Hi friends i am trying to append my ajax output into my dropdownlist....</p>
  
  <p>My ajax function:-</p>
  
  <pre><code> $.ajax({ 
       url: "getcolumn",
       data: {value: value},
       type: "POST",
       success: function(output) {
          var column = output;//here i am assigning the output to another variable
          var mySelect = $('#table_name');
          $.each(column, function(val, text) {
            mySelect.append($('&lt;option&gt;&lt;/option&gt;').val(val).html(text));
          });
  </code></pre>
  
  <p>My dropdown in form:-</p>
  
  <pre><code>echo $this-&gt;Form-&gt;input('Column', array(
      'label' =&gt; 'Select the column name below',
      'name' =&gt; 'tablename',
      'id' =&gt; 'table_name',
      'options' =&gt; array('null')
  ));
  </code></pre>
  
  <p>I want to append the output from ajax to the above dropdown box....
  I have tried to append in my ajax success function, but not working. Can anyone help me out....
  And the output is in the form of json.....</p>