title: <JSP> Getting value of check boxes
body: <p>Im stuck on getting check box's value here. Following is my code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      fnChkGrp = function() {
          alert($('#reqType').val()
      )}
  &lt;/script&gt;   
  
  &lt;form id="frm" name="frm" method="post" action=""&gt;
      &lt;input type="hidden" id="reqType" name="reqType"/&gt;
      &lt;table class="tableBB mgT10" &gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;span id="reqType" style="display:block;"&gt;
                      &lt;span class="chk"&gt;&lt;label&gt;&lt;input type="checkbox" id="normal" name="normal" value="normalChk"/&gt;A&lt;/label&gt;&lt;/span&gt;
                      &lt;span class="chk"&gt;&lt;label&gt;&lt;input type="checkbox" id="urgent" name="normal" value="urgentChk"/&gt;B&lt;/label&gt;&lt;/span&gt;
                  &lt;/span&gt;     
              &lt;/td&gt;
  
              &lt;div class="area_btnA clfix mgB20"&gt;
                  &lt;a href="#" onclick="fnChkGrp();return false;" class="btnA"&gt;&lt;strong&gt;CHECK&lt;/strong&gt;&lt;/a&gt;
              &lt;/div&gt; 
  </code></pre>
  
  <p>So when I check the "A", its its value "normalChk" should be sent through frm. 
  Ans when I click on the CHECK button, its value should be displayed.
  But for some reason, it doesn't work. Can anyone tell me why? and How to fix it?</p>