jQuery  - How to get the value of the array stored in hidden field on button click ? 
<p>How to retrieve the specific hidden field value on the click of the "showImages"   </p>

<pre><code>&lt;span class="isymbol" id="showImages" href="Javascript:Void(0);"&gt;&lt;/span&gt;

&lt;input type="hidden" name="hdnplaceid[&lt;?php echo $k; ?&gt;]" id="hdnplaceid" value="&lt;?php echo $PackageDetailsSightSeeing[$k]['deal_place_id']; ?&gt;"&gt;
&lt;input type="hidden" name="hdncityid[&lt;?php echo $k; ?&gt;]" id="hdncityid" value="&lt;?php echo $PackageDetailsSightSeeing[$k]['deal_city_id']; ?&gt;"&gt;
</code></pre>

<p>I tried this but everytime i get the same value irrespective of the button which i click</p>

<pre><code>$('.isymbol').click( function() {
   var placeid= $("#hdnplaceid").val();

   //   $("#hdnplaceid").val();
   var cityid=$("#hdncityid").val();
   alert(placeid);
   alert(cityid);
   loadImagePopupBox();
});
</code></pre>

<p>The span and the input field are in a for loop. So they are dynamically generated.</p>

<p>Thanks,</p>
