title: Symfony check box with action
body: <p>I using symfony and have template with array with some entities array, and need create in <code>for in</code> check box for all entity and when checked some entities and click ready go to action with ids(from all check box) -  example - taskExecution.id</p>
  
  <p>I don't used symfony form with type entity because <code>taskExecutions</code> complicated DTO, from this DTO  i need only id for to send on another action </p>
  
  <pre><code>    $taskExecutions = $this-&gt;getTaskExecution()
              -&gt;getTaskExecutionByFilter($form-&gt;getData());
  
      return [
          'form' =&gt; $form-&gt;createView(),
          'taskExecutions' =&gt; $taskExecutions
      ];
  
      {% for taskExecution in taskExecutions %}
          &lt;input class="searchType" type="checkbox" name="SharingNotification" id={{ taskExecution.id }}&gt;
             &lt;label class="searchtype2label"&gt;{{ taskExecution.id }}&lt;/label&gt;
          &lt;/input&gt;
      {% endfor %}
  
      {% javascripts
  '@EconomyBundle/Resources/public/js/check-task-executions.js'
  filter='?yui_js' combine=true %}
  &lt;script src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  </code></pre>
  
  <p>add js </p>
  
  <pre><code>$('.searchType').click(function() {
  alert($(this).attr('id'));
  if(this.checked){
      $.ajax({
          type: "POST",
          url: '/manage/outbound_invoices/task_executions/ids',
          data: $(this).attr('id'), //--&gt; send id of checked checkbox on other page
          success: function(data) {
              alert('it worked');
              alert(data);
              $('#container').html(data);
          },
          error: function() {
              alert('it broke');
          },
          complete: function() {
              alert('it completed');
          }
      });
  
  }
  });
  </code></pre>
  
  <p>this my action</p>
  
  <pre><code>    /**
   * give task executions ids for created row.
   *
   * @Route("/manage/outbound_invoices/task_executions/ids", name="ids_task_executions_")
   * @Method({"POST", "GET"})
   */
  public function getIdsTaskExecutionsAction(Request $request)
  {
      $ids = $request-&gt;get('ids');
  }
  </code></pre>
  
  <p>I don't know js, help please for understand how get check box value (1 or 0) and entity id parameter and send to another action </p>