how to get selected values to jquery? : 

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

      foreach($data as $row)
      {
       $output .= '
       <tr>
        <td class="col-xs-3">'.$row->policyno.'</td>
        <td class="col-xs-3">'.$row->q_tree.'</td>
        <td class="col-xs-3">'.$row->Tt_tree.'</td>
        <td class="col-xs-3"> 
           <input id="checkbox" style="margin-left:20px" value='.$row->policyno.' type="checkbox" name="plcdata[]" />
        </td>
       </tr>
       ';
      }

<!-- end snippet -->

I use this loop to view data inside a table and pass to view page using ajax and i have added check box as a input for select rows in the table.how to get selected rows using javascript **name="plcdata[]** array of checkbox input?