Alert values properties of an object related to input value
<p>I am no able to alert object values corresponding to the id of area tag.</p>

<p>My code is, </p>

<pre><code>          $(document).ready(function () {
            $(".wholecirclewrapper area").click(function(){      
                if($(this).hasClass("active")) {        
                    return false;
                }       
                var choice = $(this).attr("id");    
                $.each(results.States, function(i, item) {
                    var st=results.States[i].Name;
                    if(choice==st)
                    {
                        alert(results.States[i].ISHI);  
                    }
                });

            });

        }); 
</code></pre>

<p>My Html code is</p>

<pre><code>            &lt;div id="mapdiv"&gt;
        &lt;img src="india.gif"  alt="India" usemap="#indiamap" /&gt;
        &lt;map name="indiamap" class="wholecirclewrapper"&gt;
            &lt;area class="specificshelfdiv1" id="AndraPradesh" shape="rect" coords="0,0,82,126" href="#"  /&gt;
            &lt;area class="specificshelfdiv2" id="ArunachalPradesh" shape="circle" coords="90,58,3" href="#"  /&gt;
            &lt;area class="specificshelfdiv3" id="Assam" shape="circle" coords="124,58,8" href="#"   /&gt;     
        &lt;/map&gt; 
    &lt;/div&gt;
</code></pre>

<p>My external json looks like</p>

<pre><code>      var results={"States":[
        { "Name" : "AndraPradesh" , "ISHI" : "19.5 (Serious)" ,"Literacy rate" : "67.7" ,"Population rate" : "84,665,533" ,"NFHS" : "29.8" ,"Tap water" : "69.9"}, 
        { "Name" : "ArunachalPradesh" , "ISHI" : "Not estimated" ,"Literacy rate" : "67" ,"Population rate" : "1,382,611" ,"NFHS" : "29.6" ,"Tap water" : "65.5"}, 
        { "Name" : "Assam" , "ISHI" : "19.8 (Serious)" ,"Literacy rate" : "73.2" ,"Population rate" : "31,169,272" ,"NFHS" : "35.8" ,"Tap water" : "10.5"} 
     ]
     };
</code></pre>

<p>i am calling json via </p>

<pre><code>           &lt;script src="json_states.json" type="text/javascript"&gt; &lt;/script&gt;
</code></pre>

<p>What am I doing wrong?</p>
