Im stuck on getting check box's value here. Following is my code.
<script type="text/javascript">
fnChkGrp = function() {
alert($('#reqType').val()
)}
</script>
<form id="frm" name="frm" method="post" action="">
<input type="hidden" id="reqType" name="reqType"/>
<table class="tableBB mgT10" >
<tr>
<td>
<span id="reqType" style="display:block;">
<span class="chk"><label><input type="checkbox" id="normal" name="normal" value="normalChk"/>A</label></span>
<span class="chk"><label><input type="checkbox" id="urgent" name="normal" value="urgentChk"/>B</label></span>
</span>
</td>
<div class="area_btnA clfix mgB20">
<a href="#" onclick="fnChkGrp();return false;" class="btnA"><strong>CHECK</strong></a>
</div>
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?