title: X-Editable: How to Add Parameters
body: <p>My current (very very simple) script is as follows:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $('.edit').editable();
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>My HTML is as follows:</p>
  
  <pre><code>&lt;span class="edit editable editable-pre-wrapped editable-click" data-title="Target Value"&gt;£135,000&lt;/span&gt;
  </code></pre>
  
  <p>My question is how do I add more parameters to this so the processing script picks them up? Let's say I wanted to add:</p>
  
  <pre><code>data-title="cows"
  </code></pre>
  
  <p>I have tried the following which doesn't work but changing <code>$(this).data("data-title")</code> to a number, it works. ANy idea?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              $(document).ready(function () {
                  $('.edit').editable({
                      type: 'textarea',
                      pk: 1,
                      url: '/poo',
                      ajaxOptions: {
                          type: 'POST'
                      },
                      params: {
                          titleDesc: $(this).data("data-title"),
                      }
                  });
              });
          &lt;/script&gt;
  </code></pre>