jquery插件开发之实现google+圈子选择功能

2020-05-22 15:13:05易采站长站整理

                input.removeClass(iset.inputWCls);
            },
            upstyle:function(type){
                //更新下拉列表样式 – 当已选换行时 —
                var len=pull.find(‘li.hook_visible’).size();
                if(type==’match’){
                    len=pull.find(‘li:visible’).size();
                }
                if(len<_l){
                    pull.height(_h*len);
                    if(len==0){
                        this.hide();
                    }
                }else{
                    pull.height(_h*_l);
                }
                pull.css(‘top’,chose.outerHeight());
            },
            match:function(str){
                //过滤选择 – 拼音选择须插件支持
                var visible=pull.find(‘li.hook_visible’);
                visible.each(function(){
                    var name=$(this).attr(‘data-name’);
                    name.match(str.toUpperCase())!=null ? $(this).show() : $(this).hide();
                });