jquery selectize $(...).selectize 不是一个函数

问题描述 投票:0回答:1
jquery selectize.js
1个回答
-1
投票

试试这个方法:

$(document).ready($(function() {
    $('select[id="nazev_' + <?php echo $i; ?> + '"]').selectize({
        sortField: 'text',
        onInitialize: function() {
            var s = this;
            this.revertSettings.$children.each(function() {
                $.extend(s.options[this.value], $(this).data());
            });
        }
    });
}));
© www.soinside.com 2019 - 2024. All rights reserved.