Home  >  Article  >  Web Front-end  >  Jquery plug-in to create a custom select tag_jquery

Jquery plug-in to create a custom select tag_jquery

WBOY
WBOYOriginal
2016-05-16 17:59:041097browse

首先看下效果


复制代码 代码如下:











比较简陋只是将select转成自定义的样式

现在只有2个参数可以设置
复制代码 代码如下:

$(function() {
$("#test").jsScroll({ showLength: 3, option_click: function() { alert("1"); } });
})

showLength:下拉框默认显示数量 ---默认显示5个

option_click:点击每一个option执行的事件--默认是将options的值绑定到input中
在线演示:http://demo.jb51.net/js/2011/JQSelect/
打包下载:http://www.jb51.net/jiaoben/40362.html
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn