Jquery Get all the array elements
<p>I am programming beginner..</p>

<p><strong>Code</strong></p>

<pre><code> &lt;script type="text/javascript"&gt;
     $(function() {
       var course_category = "&lt;?php echo $_REQUEST['cities'] ?&gt;";
       alert(course_category); // alerts as Array
   });
</code></pre>

<p>when i do print_r in php (<code>print_r($cities);</code>) i get  </p>

<pre><code>  Array ( [0] =&gt; BLR [1] =&gt; DEL [2] =&gt; HYD [3] =&gt; MUM
</code></pre>

<p>now i want to print the array in above jquery </p>

<p><strong>try</strong></p>

<pre><code> $.each(course_category, function(key,value){
   alert(value); 

}};
</code></pre>

<p>printns <strong>A,r,r,a,y</strong></p>
