title: dynamic dropdown with additional parameter in jqgrid
body: <p>Although there were several links regarding dynamic dropdown .after using those links i could not get expected result.I am able to get dynamic  dropdown from php.But dont know how to pass parameter in editoption.Could any one suggest this.</p>
  
  <p><strong>how to get current row id .i want to pass it as id. in below shown</strong>:</p>
  
  <p>Here is the code for jqgrid colmodel:</p>
  
  <pre><code>colModel:[{name:'proof',index:'proof', width:50,formoptions:{rowpos:4, colpos:2},editable:true,edittype:"select",
  editoptions: { dataUrl:"http://27.251.54.45/lighthouse/dynamicversion.php?id=" +id}},]
  </code></pre>
  
  <p>php code:</p>
  
  <pre><code>include("include/connect.php");
  
  $jobid=$_GET['id'];
  $query = "SELECT  r.revisionid FROM revision r JOIN revision v
            ON r.versionid = v.versionid and r.jobid=$jobid";
  
  
  echo "&lt;select id='proof'&gt;
  &lt;option value='New Version'&gt;New Version&lt;/option&gt;
  &lt;option value='New Revision'&gt;New Revision&lt;/option&gt;";
  $result = mysql_query ($query,$connect);
  while($cat=mysql_fetch_array($result)){
  
          echo "&lt;option value=$cat[0]&gt;$cat[1]&lt;/option&gt;";
      }
  echo "&lt;/select&gt;";
  ?&gt;
  </code></pre>
  
  <p>Could any one please give suggestion on this.Thanks</p>