title: jquery datatable: get entire column value by button click
body: <p>I bind my json data using jquery datatable and add button on row.  Now how can I get a specific column data on list by button click? I can get a row value but can not find a way to get a column value.</p>
  
  <p>Here is my Code:</p>
  
  <pre><code>$.ajax({
      url: "SympsService.asmx/GetSymptoms",
      method: "post",
      dataType: "json",
      data: JSON.stringify({ organ_name: "toes" }),
      contentType: "application/json",
      success: function (data) {
          var sympList = 'GetSymptoms' ? JSON.parse(data.d) : data.d;
          createDataTable('#symptomsTable', sympList);
  
          function createDataTable(target, data) {
              $(target).DataTable({
                  destroy: true,
                  paging: false, searching: false, info: false, data: data,
                  columnDefs: [{
                      targets: [-1], render: function () {
                          return "&lt;button type='button'&gt;" + ('Choose') + "&lt;/button&gt;"
                      }
                  }],
                  columns: [{
                          'data': 'Sympt',
                          'title': 'toes Symptoms',},
                  {'data': null, 'title': 'Action' }]
                 });
          }
          $('#symptomsTable').on("click", "tbody button", function () {
              var id = $(this).closest("tr").find("td:nth-child(1)").data();
              //here i get every row data by button click
              //but i want specific column data on list
          }) 
      }
  });
  </code></pre>