好用的自定义select下拉插件jQuery Selectric

所属分类:输入-选择框

 30692  323  查看评论 (0)
分享到微信朋友圈
X
好用的自定义select下拉插件jQuery Selectric ie兼容7

使用方法

以下为页面必须要引入的js和css.

<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="jquery.selectric.min.js"></script>
<link rel="stylesheet" href="selectric.css">

你的html:

<select>
    <option>北京市</option>
    <option>上海市</option>
    <option>南京市</option>
    <option>广州市</option>
</select>

你的js调用:

$(function() {
  $('select').selectric();
});
$('select').selectric('open');    // 展开
$('select').selectric('close');   // 关闭
$('select').selectric('destroy'); // 摧毁,不可用
$('select').selectric('refresh'); // 刷新
$('select').selectric('init');    // Reinitialize the plugin
// 或者可以这样...
var Selectric = $('select').data('selectric');
Selectric.open();    // 
Selectric.close();   // 
Selectric.destroy(); // 
Selectric.refresh(); // 
Selectric.init();
相关插件-选择框

JQ表单选择插件

插件包含单选按钮、复选框以及下拉选择菜单的功能,样式美化可自己编写css
  选择框
 60054  315

最新版自制小清新selsct插件

美化下拉插件,兼容至IE8
  选择框
 29829  340

jQuery多级联动插件(单选多选)tntreebox插件

tntreebox实现多级联动一级单选二级三级多选
  选择框
 37745  337

选择联系人效果,搜索单个联系人功能(原创)

选择添加联系人效果,并带有搜索功能,实现更好人员选择效果jQuery插件
  选择框
 35766  377

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复