jquery从JS对象数组中生成多级下拉列表特效

所属分类: 网页特效-导航菜单    2023-08-01 04:23:54

jquery从JS对象数组中生成多级下拉列表特效 ie兼容6
反馈问题  查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery从JS对象数组中生成多级下拉列表特效(共5个文件)

    • cascader.js
    • cascader.css
    • index.html
    • languages.js
    • bootstrap.min.css

使用方法

        $(function(){
          // parse the data
          languages.forEach(function(item){
            item.label = item.name
            item.value = item.indexcode
            item.children = item.s
            item.s.forEach(function(item2){
              item2.label = item2.name
              item2.value = item2.indexcode
              if (item2.s && item2.s.length) {
                item2.children = item2.s
                item2.s.forEach(function(item3){
                  item3.label = item3.name
                  item3.value = item3.indexcode
                })
              }
            })
          })
          // initialize the plugin on the input field and done
          $('#test').zdCascader({
            data: languages,
            container: '#test',
            onChange: function(value, label, datas){
              console.log(value, label, datas);
            }
          });
        })

站长提示:
1. 平台上所有素材资源,需注册登录会员方能正常下载。
2. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励20K币
3. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
4. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 导航菜单

jquery响应式变形全屏导航菜单特效

一款响应式动画导航特效,点击导航菜单带cookies保存记录功能,非常实用。
  导航菜单
 207  

jquery灰色新闻网站二级下拉导航菜单

一款浅灰色导航菜单,自动识别二级菜单区域偏移,喜欢的点个赞!
  导航菜单
 218  

CSS带箭头的步骤序号导航条

两种不同风格的步骤向导导航条,含两种风格:黑色和绿色,带箭头和数字书号的节点步骤。
  导航菜单
 215  

jquery滚动既定高度后导航条吸顶/锚点定位自动跟随

目前网上很多单页站普遍在使用的特效,非常简单实用。
  导航菜单
 320  

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论