How i set checked or uncheked using jquery

Posted 6 months ago by tanveerkhanwd
      {{ csrf_field() }}
      <table id="" class="table table-bordered table-striped">
        <thead>
          <tr>
            <th style="width: 15%" class="center">#</th>
            <th style="width: 15%" class="center" colspan="6">permissions</th>
          </tr>
          <tr>
            <th style="width: 15%" class="center"></th>
            @foreach($allowPermission as $result)
            <th style="width: 15%" class="center">{{$result}}<br> 
              <input type="checkbox" name="" id="{{$result}}">
            </th>
            @endforeach
          </tr>
        </thead>
        <tbody>
         
          @foreach($aRolePermission as $results)
          <tr>
            <th>
              {{$results}}
              <input type="checkbox" name="" class="right" id="{{$results}}" >
            </th>
              @foreach($allowPermission as $result)
            <td class="center">
              <input type="checkbox" name="permission[{{$results}}][{{$result}}]" class="{{$results}} {{$result}}" checked="checked">
            </td>
            @endforeach
          </tr>
          @endforeach  
                  
        </tbody>             
      </table>
      <div class="box-footer">
        {!! Form::submit('Update',['class'=>'btn btn-primary']); !!}
      </div><!-- /.box-footer -->
      {!! Form::close() !!}

Please sign in or create an account to participate in this conversation.