title: Trying to add dynamic options to jtable (jQuery)
body: <p>The basic syntax for adding a RadioButton to the AddRecord option is as follows</p>
  
  <pre><code>active: {
    title: 'Activo',
    width: '5%',
    type: 'radiobutton',
    options: { '0': 'No', '1': 'Si' }
  },
  </code></pre>
  
  <p>Ive been trying to make the "options" come from the db but haven't figured a way yet (PHP). </p>
  
  <p>The plugin works by using a $_REQUEST to "dbactions.php?action=", and returns a JSON Array</p>
  
  <pre><code>$jTableResult = array();
      $jTableResult['Result'] = "OK";
      $jTableResult['TotalRecordCount'] = $recordCount;
      $jTableResult['Records'] = $rows;
      print json_encode($jTableResult);
  </code></pre>
  
  <p>which i presume goes to the "./js/jtable/jquery.jtable.min.js" script.</p>
  
  <p>As far AFAIK/have read i cannot insert php code inside a js script so i'm pretty lost as to how i could make it dynamic. All relevant examples i've found are for asap.net instead of php.</p>
  
  <p>I actually wanted to use a combobox instead of a radiobutton. </p>
  
  <p>So far i've been using a view to show the data, but when i insert new data i insert directly to the table (which has 3 fields instead of the 4 shown), so i need to show the name field as an option but insert the id (plus 2 dates) into one of the tables that conform the view.</p>
  
  <p>Anyone have any ideas on how to accomplish this?   </p>