title: passing parameters to jQuery's select2 ajax call
body: <p>I'm attempting to pass an extra parameter to an ajax call within select2:</p>
  
  <pre><code>  $(".auto-sug").select2({
      width:'element',
      minimumInputLength:2,
      ajax: {
          url: "/action/get-custom.php",
          data: function (term, page) {
            return {
                q: term, // search term
                page_limit: 10
            };
          },
          results: function (data, page) {
              return {results: data.stuff};
          }
      }
    });
  </code></pre>
  
  <p>I actually want to pass another parameter to the ajax call... the id of the element itself</p>
  
  <pre><code>&lt;input type="text" class="auto-sug" name="custom" id="3383" /&gt;
  </code></pre>
  
  <p>however, I'm unable to figure out how to actually access the id of the element (3383) or any other value on the page.</p>