getting checked checkbox display name
<p>I have a set of checkboxes:</p>

<pre><code>&lt;input type="checkbox" value="111" name="checkbox"  id="1"&gt;india
&lt;input type="checkbox" value="121" name="checkbox" id="21"&gt;pak
&lt;input type="checkbox" value="131" name="checkbox" id="31"&gt;china
&lt;!-- ... --&gt;
&lt;input type="checkbox" value="141" name="checkbox" id="10"&gt;srilanka
</code></pre>

<p>I want to get the display name of checked check boxes like if india , pak ... I tried with following code which gives me value 111,121, ....</p>

<pre><code>    field= document.form.checkbox;
     for(var i=0; i &lt; field.length; i++)
                       {  

                       if(document.getElementById(i).checked==true)
                         Cities+=document.classifiedForm.checkbox[i].value + ",";



                        } 
</code></pre>
