title: Get the value of Checkbox and hidden input element
body: <p>Htlm as follows :</p>
  
  <pre><code>&lt;table class="tablesorter"&gt;
   &lt;g:each in="${vehicleInstanceList}" status="i" var="vehicleInstance"&gt;
   &lt;tr class="${(i % 2) == 0 ? 'odd' : 'even'}" id ="rows"&gt;
      &lt;td &gt;
        &lt;g:checkBox id = "isActive_${i}" class="isActive" name="isActive"  value="${vehicleInstance?.isActive}" /&gt;
        &lt;input type="hidden" value="${vehicleInstance?.id}" name="vehicleId" id="isActive_${i}_" /&gt;
       &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and Jquery :</p>
  
  <pre><code>  $(".isActive").click(function() {
       var checkBox_id = $(this).attr("id");            // getting the id of checkbox
       var isActive =          // get the value of checkbox
       var  vehicleId  =      // get the value of hidden input element
  
    });
  </code></pre>
  
  <p>i have to get the value of checkbox and hidden input element how can i do it?
  isActive is a boolean type and i want answer in terms of true/false , if checked true else false</p>
  
  <pre><code>  var isActive = $('#'+checkBox).is(':checked');  i have tried to get value of checkbox but it always gives output as false
  </code></pre>