Select2ButtonsjQuery 转换选择框为按钮的插件

联合创作 · 2023-10-02 11:12

Select2Buttons是一个能将网页中的select选择框转换成一组按钮的插件。


主要功能特点:

  • 转换select选择框为标签式按钮
  • 支持js回发调用
  • 支持disabled选项
  • 支持将多个select设置为一组
  • 支持取消默认选中

示例代码:

<select name="simple-select">
  <option>One</option>
  <option>Two</option>
  <option>Three</option>
</select>

<script>
   $('select[name=simple-select]').select2Buttons();
</script>
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报