title: select 2 add additional parameters to select options
body: <p>I need additional parameters for <code>&lt;option&gt;&lt;/option&gt;</code> tag that generates by select2 from ajax data. </p>
  
  <p>My ajax params for select2(coffee):</p>
  
  <pre><code>ajax:
    url: '/moysklad_warehouse_items/find_warehouse_item'
    dataType: 'json'
    delay: 500
    data: (query) -&gt;
      { q: query.term }
    processResults: (data) -&gt;
      { results: data }
  </code></pre>
  
  <p>Resulted data structure:</p>
  
  <pre><code>[{id: 1, text: 'one', price: 100, weight: 10},
   {id: w, text: 'two', price: 200, weight: 12}]
  </code></pre>
  
  <p>By default select2 provide only <code>id</code> and <code>text</code> parameters and select looks like this:</p>
  
  <pre><code>&lt;select&gt;
    &lt;option value="10" selected="selected"&gt;one&lt;/option&gt;
    &lt;option value="11" selected="selected"&gt;one&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I want to add additional data(price and weight), like, that parameters take part in calculations and only <code>text</code> tag if insufficiently</p>
  
  <pre><code>&lt;option value="11" selected="selected" price="12" weight="100"&gt;one&lt;/option&gt;
  </code></pre>
  
  <p>If its impossible for <code>&lt;option&gt;&lt;/option&gt;</code> tag, it would be normal if I put, for example, <code>&lt;span&gt;&lt;/span&gt;</code> inside <code>&lt;option&gt;</code> and add parameters to <code>&lt;span&gt;</code></p>