title: How to foreach after parsing json response got via ajax in jquery?
body: <p>I am having an array for list of all banks that i want to append inside li:-</p>
  
  <pre><code>HTML:
      &lt;div id="bank_name"&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>i am having an getting an array after jsonParse in this format:-</p>
  
  <pre><code>[{"bank name":"Australian Military Bank"},{"bank name":"Adelaide Bank"},{"bank name":"Advantedge"},{"bank name":"American Express"},{"bank name":"AMP"},{"bank name":"ANZ"},{"bank name":"Auswide Bank"},{"bank name":"AWA Alliance Bank"},{"bank name":"Bank of Us"},{"bank name":"Bank Australia"},{"bank name":"BankFirst"},{"bank name":"BankMeCU"},{"bank name":"BankSA"},{"bank name":"BankSA Business Banking"},{"bank name":"Bank of Sydney"},{"bank name":"BankVic "},{"bank name":"Bankwest"},{"bank name":"Bank of CAPTCHA"},{"bank name":"Bank of Custom Data"},{"bank name":"Bank of MFA"},{"bank name":"Bank of Mortgage"},{"bank name":"Bank of Optional MFA"},{"bank name":"Bank of Password"},{"bank name":"Bank of Statements"}]
  </code></pre>
  
  <p>The code I used to append it inside the div</p>
  
  <p>Jquery:-</p>
  
  <pre><code>$.ajax({
          ...
          success: function(response) {
            var new_list = var obj = jQuery.parseJSON(response); 
            $(new).each(function(i, val ) {
               $('#bank_name li').append(val);
             });
           }
         });   
  </code></pre>
  
  <p>I tried even by using the previous answers but it didn't helped me.</p>