title: Send custom parameter in x-editable
body: <p>I am using x-editable to populate select list in popup. Now I want to send my key to server, my code is something like that</p>
  
  <pre><code>&lt;a href="#" id="status" data-type="select" data-pk="1" data-url="${g.createLink(controller: 'someController', action: 'someAction')}" data-title="Select CV" class="btn btn-primary"&gt;
      &lt;image src="${resource(dir: 'images/template', file: 'logo11.png')}"/&gt; ${session.someList?.size()} CV(s) Created
  &lt;/a&gt;
  &lt;script&gt;
      $(function () {
          $('#status').editable({
              value: 1,
              source: [
                  &lt;g:each in="${session.someList}" var="xyz"   status="idx"&gt;
                      {value: ${xyz?.id}, text: "${xyz.title}",        srsSelected:                    ${xyz.id}, updateXyz: "updateXyz"},
                  &lt;/g:each&gt;
              ]
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to send my srsSelected key to server, I did google but not getting the point...</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Now I am able to send my key to server(after long research) using  </p>
  
  <pre><code>params: function (params) {  //params already contain `name`, `value` and `pk`
      var data = {};
      data['cvSelected'] = params.pk;
      return data;
  }
  </code></pre>
  
  <p>therefore my updated code is:</p>
  
  <pre><code>&lt;a href="#" id="status" data-type="select" data-pk="1" data-url="${g.createLink(controller: 'someController', action: 'someAction')}" data-title="Select CV" class="btn btn-primary"&gt;
      &lt;image src="${resource(dir: 'images/template', file: 'logo11.png')}"/&gt;
                  ${session.someList?.size()} CV(s) Created
  &lt;/a&gt;
  &lt;script&gt;
      $(function () {
          $('#status').editable({
              value: 1,
              source: [
                  &lt;g:each in="${session.someList}" var="xyz"   status="idx"&gt;
                      {value: ${xyz?.id}, text: "${xyz.title}", srsSelected:     ${xyz.id}, updateXyz: "updateXyz"},
                  &lt;/g:each&gt;
              ],
              params: function (params) {  //params already contain `name`, `value` and `pk`
                  var data = {};
                  data['srsSelected'] = params.pk;
                  return data;
              }
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I am able to send value of <code>pk</code> in <code>srsSelected</code> key but this time I need to set value of <code>srsSelected</code> dynamically.</p>