2016-02-12 59 views
-2

select2和sheepit不在一起工作。我試過選擇,選擇也沒有與羊羔一起工作。select2和sheepit jquery插件不能一起工作

您對此有何評論?

<div id="urun_satis_formu"> 
 
    <div id="urun_satis_formu_template"> 
 
     <div class="row"> 
 

 
     <span class="col-sm-2"> 
 
     <select onChange="urunleri_hesapla( 'satis','9' )" class="input-small s2 " data-title="-xix-" name="stok__so_gelir_gider__nesne_id__-xix-" id="stok__so_gelir_gider__nesne_id__-xix-" > 
 
      <option value="">...</option> 
 
      <option value="53" > 128-Basketbol Forma(16 Adet) </option> 
 
     </select> 
 
     </span><span class="col-sm-2"> 
 
     <input onKeyUp="urunleri_hesapla('satis','9')" type="text" class=" form-control input-small" id="stok__so_gelir_gider__miktar__-xix-" data-title="" name="stok__so_gelir_gider__miktar__-xix-" placeholder="" value="1" size="32"> 
 
     </span><span class="col-sm-2"> 
 
     <input onKeyUp="urunleri_hesapla('satis','9')" type="text" class=" form-control input-small" id="stok__so_gelir_gider__fiyat__-xix-" data-title="" name="stok__so_gelir_gider__fiyat__-xix-" placeholder="" value="0" size="32"> 
 
     </span><span class="col-sm-1"> 
 
     <input onKeyUp="urunleri_hesapla('satis','9')" type="hidden" class=" form-control input-small" id="stok__so_gelir_gider__kdv__-xix-" data-title="" name="stok__so_gelir_gider__kdv__-xix-" placeholder="" value="0" size="32"> 
 
     <span class="stok__so_gelir_gider__kdv__-xix-"></span>%</span><span class="col-sm-1"> 
 
     <input onKeyUp="urunleri_hesapla('satis','9')" type="hidden" class=" form-control input-small" id="stok__so_gelir_gider__urun_tutari__-xix-" data-title="" name="stok__so_gelir_gider__urun_tutari__-xix-" placeholder="" value="0" size="32"> 
 
     <span class="stok__so_gelir_gider__urun_tutari__-xix-"></span><span class="stok__so_gelir_gider__urun_tutari__-xix-_doviz"></span></span><span class="col-sm-1"> 
 
     <input checked type="checkbox" class="uniform-false left form-control input-small" id="stok__so_gelir_gider__teslim_durumu__-xix-" data-title="" name="stok__so_gelir_gider__teslim_durumu__-xix-" placeholder="" value="1" size="32"> 
 
     </span> <span class="btn red urun_satis_formu_remove_current"><i class="fa fa-remove icon-white"></i></span> 
 
     <hr /> 
 
     </div> 
 
    </div> 
 
    <div id="urun_satis_formu_noforms_template">Ürün Seçilmedi</div> 
 
    <div style="clear:both"></div> 
 
    <div id="urun_satis_formu_controls"> 
 
     <div id="urun_satis_formu_add" class="btn green"><i class="fa fa-plus"></i> <span>Ürün Ekle</span></div> 
 
     <div id="urun_satis_formu_remove_last" class="btn red"><i class="fa fa-minus"></i> <span>Sil</span></div> 
 
     <div id="urun_satis_formu_remove_all" class="btn red"><i class="fa fa-minus"></i> <span>Hepsini Sil</span></div> 
 
     <div id="urun_satis_formu_add_n"> 
 
     <input class="form-control input-small" id="urun_satis_formu_add_n_input" type="text" size="4" /> 
 
     <div id="urun_satis_formu_add_n_button" class="btn green"><i class="fa fa-plus"></i> <span>Ekle</span></div> 
 
     </div> 
 
    </div> 
 
    </div>

問候, 塞爾丘克

+0

顯示您的代碼,您正在嘗試什麼 – waki

+0

更具體地瞭解什麼是不工作,顯示一些代碼部分等... –

+0

我已經添加了代碼,但代碼不是這個問題的必要條件。 Sheepit正在阻止select2和所選擇的工作,但它是如何製造的? –

回答

0

如果SELECT2 sheepit之前運行,sheepit被破壞的SELECT2結構。所以我們運行selectit後,它運行沒有問題。我們添加如'no-select2'類來選擇,我們不讓select2在 上運行。而且我們正在添加sheepit配置;

afterAdd: function(source, clone) { 
      $('.no-select2').select2(); 
     } 

它運行。

相關問題