title: how to insert the data-type property in the codeigniter form_dropdown?
body: <p>I have one Dropdown option with codeigniter</p>
  
  <p>Codeigniter Code is</p>
  
  <pre><code>&lt;?= form_dropdown('', array(
              'custom' =&gt; 'Custom',
              'tour_package' =&gt; 'Tour',
              'visa' =&gt; 'Visa'
         ),'','class="product_type"'); 
  ?&gt;
  </code></pre>
  
  <p>but i want to <strong>add new value of the datatype into the dropdown</strong>.</p>
  
  <p><strong>data-property='product_type'</strong></p>
  
  <p>I need to show my souce code like this.</p>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;select name="order[order_products][0][product_type]" class="product_type"&gt;
  &lt;option value="custom"&gt;Custom&lt;/option&gt;
  &lt;option value="tour_package"&gt;Tour&lt;/option&gt;
  &lt;option value="visa"&gt;Visa&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Jquery Code</p>
  
  <pre><code>$('input,select').each(function(){
     var property = $(this).attr('data-property');
     $(this).attr('name','order[order_products]['+current_counter+']['+property+']');
  
  })
  </code></pre>