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

Jquery plug-in to create a custom select tag_jquery

WBOY
Release: 2016-05-16 17:59:04
Original
1154 people have browsed it

首先看下效果


复制代码 代码如下:











比较简陋只是将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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template